permutations | R Documentation |

Generates all possible permutations of elements from a vector.

permutations(x)

`x` |
Any kind of vector. |

Adrian Dusa

permutations(1:3)

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.