Learn R Programming

wrMisc (version 1.2.3)

lrbind: rbind on lists

Description

rbind-like function to append list-elements containing tables and return one long table. Accepts also list-entries with data.frames or vectors (of length of no of columns) as long as at least 1 list-entry is a matrix

Usage

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

Arguments

lst

(list) main input (each list-element should have same number of columns, numeric vectors will be converted to number of columns of other elements)

silent

(logical) suppress messages

callFrom

(character) allow easier tracking of message(s) produced

Value

matrix or data.frame

See Also

rbind in cbind

Examples

Run this code
# NOT RUN {
lst1 <- list(matrix(1:9,nc=3,dimnames=list(letters[1:3],c("AA","BB","CC"))),
  11:13,matrix(51:56,ncol=3))
lrbind(lst1)
# }

Run the code above in your browser using DataLab