mat2list: mat2list

View source: R/matrix-utils.R

mat2listR Documentation

mat2list

Description

convert a matrix to a list

Usage

mat2list(x)

Arguments

x

the input matrix

Value

a list that contains matrix columns as its elements

Examples

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

yulab.utils documentation built on Sept. 11, 2024, 9:25 p.m.