dim.Rd
Retrieve or set the dimension of an spam
object.
# dim(x)
# dim(x) <- value
<!-- %"dim<-.spam"(x,value) -->
a spam
matrix
A numeric two-vector, which is coerced to integer (by truncation).
dim
retrieves
the dimension
slot of the object. It is a vector
of mode integer
.
The replacemnt method changes the dimension of the object by rearranging.
In older version of spam
, the behavior of the replacement
method was different and is now implemented in pad.spam
.