perm_dim: Permute indices for variable k
Description
Currently only works for binary dimensions.
Usage
perm_dim(x, k, perm, ...)
Value
A permuted array
or tables
object.
Arguments
- x
array or related object
- k
index to permute
- perm
permutation to perform
- ...
other arguments (not currently used)
Details
Permutes the levels of one variable
according to the permutation given in perm
.
Can be applied to matrices, arrays or tables.