Description Usage Arguments Value Examples

Gets a permutation of the integers 1-N by its index 1-N!.

1 | ```
permutation(x, n)
``` |

`x` |
number (length 1 vector). The index of the permutation to generate. Must be less than |

`n` |
number (length 1 vector). The number of items in the permutation. |

Number vector of the integers 1-n re-ordered.

1 | ```
for (i in 1:24) print(permutation(i, 4))
``` |

graywh/r-gmisc documentation built on June 25, 2018, 4:51 a.m.

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.