R/generics.R
R/expressions.R
size.Rd
The size of an expression.
size(object) # S4 method for class 'ListORExpr' size(object)
An Expression object.
A vector with two elements c(row, col) representing the dimensions of the expression.
c(row, col)
x <- Variable() y <- Variable(3) z <- Variable(3,2) size(x) #> [1] 1 size(y) #> [1] 3 size(z) #> [1] 6 size(x + y) #> [1] 3 size(z - x) #> [1] 6