reorder {multiway} | R Documentation |
Reorder Multi-Way Factors
Description
Reorders factors from a multiway
object.
Usage
## S3 method for class 'cpd'
reorder(x, neworder, ...)
## S3 method for class 'indscal'
reorder(x, neworder, ...)
## S3 method for class 'mcr'
reorder(x, neworder, mode = "A", ...)
## S3 method for class 'parafac'
reorder(x, neworder, ...)
## S3 method for class 'parafac2'
reorder(x, neworder, ...)
## S3 method for class 'sca'
reorder(x, neworder, ...)
## S3 method for class 'tucker'
reorder(x, neworder, mode = "A", ...)
Arguments
x |
Object of class "cpd" (output from |
neworder |
Vector specifying the new factor ordering. Must be a permutation of the integers 1 to |
mode |
Character indicating which mode to reorder (only for |
... |
Ignored. |
Details
See cpd
, indscal
, mcr
, parafac
, parafac2
, sca
, and tucker
for more details.
Value
Same as input.
Author(s)
Nathaniel E. Helwig <helwig@umn.edu>
Examples
# See examples for...
# cpd (Canonical Polyadic Decomposition)
# indscal (INividual Differences SCALing)
# mcr (Multiway Covariates Regression)
# parafac (Parallel Factor Analysis-1)
# parafac2 (Parallel Factor Analysis-2)
# sca (Simultaneous Component Analysis)
# tucker (Tucker Factor Analysis)
[Package multiway version 1.0-6 Index]