Description Usage Arguments Value To do Note Author(s) See Also Examples
View source: R/list.as.matrix.R
Convert list to matrix. List entries go to matrix columns, filled for equal length.
1 | list.as.matrix(x, byrow=FALSE, filler = NA)
|
x |
a list of numeric vectors. |
byrow |
boolean. Arrange list entries as rows. Default is to use columns. |
filler |
a value to be used as a filler |
A matrix with the values from x, filled to matrix shape.
Arguments should be as as.matrix
.
A corresponding list.as.data.frame should be added for mixed types.
Name synchronisation/preservations should be added.
This could go to as.matrix()
.
Günther Sawitzki <gsawitzki@users.r-forge.r-project.org>
1 2 3 | x <- list(x1=c(1,2,3),x2=3, x3=4:8)
list.as.matrix(x)
list.as.matrix(x,filler=0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.