rearrange: Rearrangement algorithm on mode k

View source: R/rearrange.R

rearrangeR Documentation

Rearrangement algorithm on mode k

Description

Rearrangement algorithm on one mode

Usage

rearrange(ten, k, key = "NA")

Arguments

ten

A multi-dimensional array

k

An integer specifying the mode to arrange

key

The value to which rearrange is according, set as 'NA' by default

Details

A rearrangement algorithm on higher order tensor to rearrange all missing entries along mode k to the end.

Value

A list of two objects, a rearranged tensor and the indices rearranged


tensorFun documentation built on Nov. 1, 2022, 9:05 a.m.