cm2l {Tex4exams} | R Documentation |
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").
cm2l(matrix)
matrix |
a matrix. |
a vector of the strings of the columns of x. Each entry is a string of the column.
a <- matrix(sample(c((-10):10),12),nrow =3,byrow=TRUE)
cm2l(a)