Learn R Programming

ThreeWay (version 1.1.4)

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 [email protected]
Henk A.L. Kiers [email protected]
Paolo Giordani [email protected]

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