File: mxSimplify2Array.Rd

package info (click to toggle)
r-cran-openmx 2.21.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 14,412 kB
  • sloc: cpp: 36,577; ansic: 13,811; fortran: 2,001; sh: 1,440; python: 350; perl: 21; makefile: 5
file content (30 lines) | stat: -rw-r--r-- 717 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/MxExpectationBA81.R
\name{mxSimplify2Array}
\alias{mxSimplify2Array}
\title{Like simplify2array but works with vectors of different lengths}
\usage{
mxSimplify2Array(x, higher = FALSE)
}
\arguments{
\item{x}{a list of vectors}

\item{higher}{whether to produce a higher rank array (defaults to FALSE)}
}
\description{
Vectors are filled column-by-column into a matrix. Shorter vectors
are padded with NAs to fill whole columns.
}
\examples{
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
}