Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

permutations

Calculates the permutations of a vector


Description

Generates all possible permutations of elements from a vector.

Usage

permutations(x)

Arguments

x

Any kind of vector.

Author(s)

Adrian Dusa

Examples

permutations(1:3)

admisc

Adrian Dusa's Miscellaneous

v0.12
GPL (>= 3)
Authors
Adrian Dusa [aut, cre, cph] (<https://orcid.org/0000-0002-3525-9253>)
Initial release
2021-03-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.