Conversion to Matrix Objects
DESCRIPTION:
Converts certain S-PLUS objects to objects of class
.
.LB Matrix
USAGE:
as.Matrix(x)
REQUIRED ARGUMENTS:
- x
-
a matrix, vector, or else an array that is either 2-dimensional or has exactly
two non-unit dimensions.
VALUE:
an object of class
"Matrix"
.
SEE ALSO:
EXAMPLES:
a <- array( rnorm(4), dim = c(2,1,2))
as.Matrix(a)