sq.array {muStat} | R Documentation |
Convert input data to a square array or a square matrix.
sq.array(x) sq.matrix(x)
x |
data object. If x is a vector, length of x should
be a square number. Otherwise, the second dimension of x should
be a square number.
|
A square matrix with elements coming from x
.
Knut M. Wittkowski kmw@rockefeller.edu
sq.matrix(1:25) sq.array(matrix(1:50, ,2))