toArray {rrcov3way}R Documentation

Matrix to array conversion

Description

Restore an array from its matricization with all the frontal slices of the array next to each other (mode="A")

Usage

toArray(x, n, m, r, mode = c("A", "B", "C"))

Arguments

x

Matrix (or data.frame coerced to a matrix) containing the elements of the frontal slices of an array

n

number of A-mode elements

m

number of B-mode elements

r

number of C-mode elements

mode

in which mode is the matricized array

Value

Three way array

Author(s)

Valentin Todorov valentin.todorov@chello.at and Maria Anna Di Palma madipalma@unior.it and Michele Gallo mgallo@unior.it

References

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

Examples

    data(elind)
    di <- dim(elind)
    toArray(unfold(elind), di[1], di[2], di[3])

[Package rrcov3way version 0.5-0 Index]