# factoradic: Factoradic numbers In MRPP: Multiresponse permutation procedure and its variable importance and variable selection methods.

## Usage

 ```1 2 3 4 5 6``` ```FR2dec(FR) dec2FR(dec,N) FR2permvec(FR,base=1L) permvec2FR(permvec) dec2permvec(dec,N,base=1L) permvec2dec(permvec) ```

## Arguments

 `FR` Vector representation of factoradic number. `dec` Decimal representation of factoradic number. `N` An integer `base` 0 or 1, indicating the start index for a vector. `permvec` An integer vector of permutations of integers of size N.

## Details

`FR2dec` and `dec2FR` convert factoradic numbers from/to decimal to/from vector representations. `FR2permvec` and `permvec2FR` converst factoradic numbers in vector representations from/to permutatin indices. `dec2permvec` and `permvec2dec` are convenient wrappers that converst factoradic numbers in vector representations from/to permutatin indices.

## Value

For `FR2dec` and `permvec2dec`, an integer; for `dec2FR` and `permvec2FR`, a numeric vector; for `FR2permvec` and `dec2permvec`, an integer vector.

## References

Chapter 10 of .NET Test Automation Recipes

http://www.mathe2.uni-bayreuth.de/frib/KERBER/h00/node30.html

`permuteTrt`
 ```1 2 3 4``` ```FR2dec(dec2FR(10,10)) set.seed(2340) FR2permvec(permvec2FR(sample(10))) permvec2dec(dec2permvec(100,10)) ```