cm2l {Tex4exams} | R Documentation |
Convert a matrix into a comma separated string.
Description
The output of cm2l is a vector of strings with length equal to the column size of the input matrix. The i-th entry is the string of the numbers from the i-th column of the matrix. For example, the 2 by 2 identity matrix is converted into c("1,0", "0,1").
Usage
cm2l(matrix)
Arguments
matrix |
a matrix. |
Value
a vector of the strings of the columns of x. Each entry is a string of the column.
See Also
Examples
a <- matrix(sample(c((-10):10),12),nrow =3,byrow=TRUE)
cm2l(a)
[Package Tex4exams version 0.1.2 Index]