R: Subsidiary routine that generates a particular permutation

levarr {wavethresh} | R Documentation

## Subsidiary routine that generates a particular permutation

### Description

Not intended for casual user use. This function is used to provide the partition to reorder `wst.object` into `wd.object` (nondecimated time ordered) objects.

### Usage

    levarr(v, levstodo)

### Arguments

`v` | the vector to permute
`levstodo` | the number of levels associated with the current level in the object you wish to permute

### Details

Description says all

### Value

A permutation of the `v` vector according to the number of levels that need handling

### Author(s)

G P Nason

### See Also

`getarrvec`, `convert.wd`, `convert.wst`

### Examples

    levarr(1:4, 3)
    # [1] 1 3 2 4

[Package wavethresh version 4.6.8 Index]