asColumnList: Matrix to List of Matrix Columns

View source: R/matrix.R

asColumnListR Documentation

Matrix to List of Matrix Columns

Description

Matrix to List of Matrix Columns

Usage

asColumnList(x)

Arguments

x

matrix

Value

list with as many elements as there are columns in x and each element representing one column

Examples

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

column_list <- asColumnList(x)

for (i in 1:ncol(x)) print(identical(column_list[[i]], x[, i]))


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.