perm_dim: Permute indices for variable 'k'

View source: R/perm_dim.R

perm_dimR Documentation

Permute indices for variable k

Description

Currently only works for binary dimensions.

Usage

perm_dim(x, k, perm, ...)

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.

Value

A permuted array or tables object.


contingency documentation built on Nov. 18, 2022, 5:08 p.m.