Learn R Programming

multiway (version 1.0-2)

reorder: Reorder Multi-Way Factors

Description

Reorders factors from a multiway object.

Usage

"reorder"(x, neworder, ...) "reorder"(x, neworder, ...) "reorder"(x, neworder, ...) "reorder"(x, neworder, ...) "reorder"(x, neworder, mode="A", ...)

Arguments

x
Object of class "indscal" (output from indscal), class "parafac" (output from parafac), class "parafac2" (output from parafac2), class "sca" (output from sca), or class "tucker" (output from tucker).
neworder
Vector specifying the new factor ordering. Must be a permutation of the integers 1 to nfac.
mode
Character indicating which mode to reorder (only for tucker models). For 3-way Tucker options include "A", "B", and "C". For 4-way Tucker, options are "A", "B", "C", and "D".
...
Ignored.

Value

Same as input.

Details

See indscal, parafac, parafac2, sca, and tucker for more details.

Examples

Run this code

### see examples for indscal, parafac, parafac2, sca, and tucker

Run the code above in your browser using DataLab