asRowList: Matrix to List of Matrix Rows

View source: R/matrix.R

asRowListR Documentation

Matrix to List of Matrix Rows

Description

Matrix to List of Matrix Rows

Usage

asRowList(x)

Arguments

x

matrix

Value

list with as many elements as there are rows in x and each element representing one row

Examples

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

row_list <- asRowList(x)

for (i in 1:nrow(x)) print(identical(row_list[[i]], x[i, ]))


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