View source: R/MxExpectationBA81.R
mxSimplify2Array | R Documentation |
Vectors are filled column-by-column into a matrix. Shorter vectors are padded with NAs to fill whole columns.
mxSimplify2Array(x, higher = FALSE)
x |
a list of vectors |
higher |
whether to produce a higher rank array (defaults to FALSE) |
v1 <- 1:3
v2 <- 4:5
v3 <- 6:10
mxSimplify2Array(list(v1,v2,v3))
# [,1] [,2] [,3]
# [1,] 1 4 6
# [2,] 2 5 7
# [3,] 3 NA 8
# [4,] NA NA 9
# [5,] NA NA 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.