lbind | R Documentation |
lbind is meant to be used in conjuction with lapply to combine elements of lists using rbind.
lbind(index, alist, n)
index |
a list of indexes. This should count the number of items to return in the final list |
alist |
a list of objects to be passed to rbind. They should be grouped according to which objects will be combined (e.g., if 1,2,3 are to be passed to cbind then they should be adjacent to eachother). |
n |
The number of objects in each group. Currently each group must consist of the same number of objects. |
a list
alist<-list(c(1,1),c(2,2),c(3,3)) index<-list(1) n<-3 lapply(index,lbind,alist,3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.