Learn R Programming

ThreeWay (version 1.1.3)

perms: Permutation

Description

Gives all the permutations of the first integer numbers.

Usage

perms(n)

Value

z

Matrix containing in its rows all the permutation of the first n integer numbers

Arguments

n

Integer

Author

Maria Antonietta Del Ferraro mariaantonietta.delferraro@yahoo.it
Henk A.L. Kiers h.a.l.kiers@rug.nl
Paolo Giordani paolo.giordani@uniroma1.it

References

H.A.L. Kiers (2004). Bootstrap confidence intervals for three-way methods. Journal of Chemometrics 18:22--36.

Examples

Run this code
P <- perms(4)

Run the code above in your browser using DataLab