list.rbind | R Documentation |
The function binds all list elements by row. Each element of the list is expected
to be an atomic vector, data.frame
, or data.table
. If list elements
are also lists, the result can be a list-valued matrix. In this case,
list.stack
may produce a better result.
list.rbind(.data)
.data |
|
list.cbind
, list.stack
x <- lapply(1:3,function(i) { c(a=i,b=i^2)}) df <- lapply(1:3,function(i) { data.frame(a=i,b=i^2,c=letters[i])}) list.rbind(x) list.rbind(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.