as.matrixFromList: Converts a list of same length vectors to a matrix. Unlike...

as.matrixFromListR Documentation

Converts a list of same length vectors to a matrix. Unlike as.matrix.default, it unlists first and uses names from the first list element in the result.

Description

Converts a list of same length vectors to a matrix. Unlike as.matrix.default, it unlists first and uses names from the first list element in the result.

Usage

as.matrixFromList(xlist, byrow = TRUE)

Arguments

xlist

a list of same length vectors

byrow

if TRUE, each list element becomes a row in the matrix else, each list element becomes a column in the matrix

Value

a matrix


kcha193/simarioV2 documentation built on April 8, 2024, 4:51 p.m.