lrbind | R Documentation |
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.
lrbind(lst, silent = FALSE, debug = FALSE, callFrom = NULL)
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 |
This function returns (depending on input) a matrix or data.frame
rbind
in cbind
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.