rcm2l: Converting a matrix into a comma separated string

View source: R/rcm2l.R

rcm2lR Documentation

Converting a matrix into a comma separated string

Description

The output of rcm2l is a vector of strings with length equal to the row size of the input matrix. The i-th entry is the string of the numbers from the i-th row of the matrix. For example, the standard 2 by 2 Jordan block with 2 in the main diagonal is converted into c("2,1", "0,2").

Usage

rcm2l(matrix)

Arguments

matrix

a matrix

Value

a vector of strings with length equal to the row size of the input matrix. The i-th entry is the string of the numbers from the i-th row of the matrix.

See Also

m2l, m22l, rm2l, cm2l

Examples

a <- matrix(sample(c(-10:10),12),nrow =3,byrow=TRUE)
rcm2l(a)

Tex4exams documentation built on May 31, 2023, 8:04 p.m.

Related to rcm2l in Tex4exams...