matlist: Converts lists or vectors that nested by list to matrix.

Description Usage Arguments Value Examples

Description

Converts lists or vectors that nested by list to matrix.

Usage

1
2
matlist(lst, nrow = length(lst), ncol = length(lst[[nrow]]),
  rname = names(lst), cname = names(lst[[nrow]]))

Arguments

lst

lists or vectors nested by list.

nrow

number of rows.

ncol

number of cols.

rname

rownames of matrix after converted.

cname

colnames of matrix after converted.

Value

converted matrix.

Examples

1
2
lst <- lapply(1:5,rep,3)
matlist(lst)

hosscine/myfs documentation built on May 25, 2019, 6:20 p.m.