Description Usage Arguments Value Author(s) Examples
View source: R/organize.list.R
Function organize a list of data.frame or matrix in a single matrix. The function combine the data.frame/matrix by columns, thus all objects in the list must be equal number of columns
1 | organize.list(x, force.names = FALSE)
|
x |
A list with data.frame or matrix |
force.names |
Logical argument (TRUE or FALSE) to specify if new row names are created, using list name as prefix. |
A matrix combined.
Vanderlei Julio Debastiani <vanderleidebastiani@yahoo.com.br>
1 2 3 4 5 6 7 8 9 | A<-matrix(1,10,6)
rownames(A) <- rownames(A, do.NULL = FALSE, prefix = "A.")
B<-matrix(2,3,6)
rownames(B) <- rownames(B, do.NULL = FALSE, prefix = "B.")
C<-matrix(3,15,6)
rownames(C) <- rownames(C, do.NULL = FALSE, prefix = "C.")
RES<-list(as.data.frame(A), as.data.frame(B), as.data.frame(C))
organize.list(RES)
organize.list(RES, force.names = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.