ezMatrix | R Documentation |
Either use the rows and columns to define the matrix or the dimensions.
ezMatrix(x, rows = NULL, cols = NULL, dim = NULL)
x |
a vector containing the matrix elements |
rows |
a vector, whose length defines the number of rows. |
cols |
a vector, whose length defines the number of columns. |
dim |
a vector of length 2 defining the dimensions of the matrix. |
Returns a matrix with rows
and cols
defining the names or using generic ones, if dim
is used instead.
Rehrauer, Hubert
Schmid, Peter
ezMatrix(1,rows=1:4,cols=1:3)
ezMatrix(3:6,dim=c(4,6))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.