lrbind: rbind on lists

View source: R/lrbind.R

lrbindR Documentation

rbind on lists

Description

rbind-like function to append list-elements containing matrixes (or data.frames) and return one long table. All list-elements must have same number of columns (and same types of classes in case of data.frames. Simple vectors (as list-elements) will be considered as sigle lines for attaching.

Usage

lrbind(lst, silent = FALSE, debug = FALSE, callFrom = NULL)

Arguments

lst

(list, composed of multiple matrix or data.frames or simple vectors) main input (each list-element should have same number of columns, numeric vectors will be converted to number of columns of other columns/elements)

silent

(logical) suppress messages

debug

(logical) additional messages for debugging

callFrom

(character) allow easier tracking of messages produced

Value

This function returns (depending on input) a matrix or data.frame

See Also

rbind in cbind

Examples

lst1 <- list(matrix(1:9, ncol=3, dimnames=list(letters[1:3],c("AA","BB","CC"))),
  11:13, matrix(51:56, ncol=3))
lrbind(lst1)

wrMisc documentation built on Sept. 11, 2024, 6:10 p.m.