Learn R Programming

yulab.utils (version 0.1.7)

mat2list: mat2list

Description

convert a matrix to a list

Usage

mat2list(x)

Value

a list that contains matrix columns as its elements

Arguments

x

the input matrix

Examples

Run this code
x <- matrix(1:15, nrow = 3)
mat2list(x)

Run the code above in your browser using DataLab