Description Usage Arguments Value References Examples

Permutes the matricized (`n`

`x`

`m`

`x`

`p`

) array `X`

to the matricized array `Y`

of order (`m`

`x`

`p`

`x`

`n`

).

1 | ```
permute(X,n,m,p)
``` |

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

`n` |
Number of |

`m` |
Number of |

`p` |
Number of |

`Y` |
Matrix containing the permuted matricized array |

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ```
X <- array(1:24, c(4,3,2))
dim(X)
## matricize the array
##matricized X with the A-mode entities in its rows
Xa <- unfold(X)
dim(Xa)
Xa
## matricized X with the B-mode entities in its rows
Xb <- permute(Xa, 4, 3, 2)
dim(Xb)
Xb
## matricized X with the C-mode entities in its rows
Xc <- permute(Xb, 3, 2, 4)
dim(Xc)
Xc
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.