TITLE(matrix @@ Create a Matrix)
USAGE(
matrix(data=NA, nrow=1, ncol=1, byrow=FALSE)
as.matrix(x)
is.matrix(x)
)
ALIAS(matrix)
ALIAS(as.matrix)
ALIAS(is.matrix)
DESCRIPTION(
LANG(matrix) creates a matrix from the given set of values.
LANG(nrow) gives the desired number of rows and LANG(ncol)
the desired number of columns.
If either of LANG(nrow) or LANG(ncol)
is not given, an attempt is made to infer it from
the length of LANG(data) and the other parameter.
If LANG(byrow) is LANG(FALSE) (the default)
the matrix is filled by columns, otherwise the matrix is filled by rows.
PARA
LANG(as.matrix) attempts to turn its argument into a matrix.
This function is generic.
PARA
LANG(is.matrix) returns LANG(TRUE) if LANG(x)
is an matrix (i.e. it has a LANG(dim) attribute of length 2) and
LANG(FALSE) otherwise.
)

