Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

permnew

Permutation of a matricized array


Description

Permutes the matricized (n x m x p) array X to the matricized array Y of order (m x p x n).

Usage

permnew(X,n,m,p)

Arguments

X

Matrix (or data.frame coerced to a matrix) containing the matricized array

n

Number of A-mode entities of the array X

m

Number of B-mode entities of the array X

p

Number of C-mode entities of the array X

Value

Y

Matrix containing the permuted matricized array

Author(s)

Maria Antonietta Del Ferraro mariaantonietta.delferraro@yahoo.it
Henk A.L. Kiers h.a.l.kiers@rug.nl
Paolo Giordani paolo.giordani@uniroma1.it

References

H.A.L. Kiers (2000). Towards a standardized notation and terminology in multiway analysis. Journal of Chemometrics 14:105–122.

Examples

X <- array(c(rnorm(120)),c(6,5,4))
dim(X)
# matricized array
Xa <- supermat(X)$Xa
# matricized X with the A-mode entities in its rows
dim(Xa)
# matricized X with the B-mode entities in its rows
Xb <- permnew(Xa, 6, 5, 4)
dim(Xb)
# matricized X with the C-mode entities in its rows
Xc <- permnew(Xb, 5, 4, 6)
dim(Xc)

ThreeWay

Three-Way Component Analysis

v1.1.3
GPL (>= 2)
Authors
Maria Antonietta Del Ferraro, Henk A.L. Kiers, Paolo Giordani
Initial release
2015-09-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.