list2matrix: Convert a list to a matrix

View source: R/utils.R

list2matrixR Documentation

Convert a list to a matrix

Description

Convert a list to a matrix

Usage

list2matrix(lst, dim = c("row", "col"))

Arguments

lst

A list.

dim

One of "row" (default) or "col".

Value

The list converted to a matrix, by stacking the elements of lst in the rows or columns of a matrix.


EQRN documentation built on April 4, 2025, 12:45 a.m.