Hadoop Online Training by Edureka

mxSimplify2Array: Like simplify2array but works with vectors of different...

Description Usage Arguments Examples

Description

Vectors are filled column-by-column into a matrix. Shorter vectors are padded with NAs to fill whole columns.

Usage

1
mxSimplify2Array(x, higher = FALSE)

Arguments

x

a list of vectors

higher

whether to produce a higher rank array (defaults to FALSE)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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


Search within the OpenMx package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.