Description Usage Arguments Details Value

Generate all permutations of `x`

taken *m* at a time. If argument FUN is not NULL, applies a function given by the argument to each permutation.

1 |

`x` |
vector source for permutations. |

`m` |
number of elements to choose. Default is |

`FUN` |
function to be applied to each permutation; default NULL means the identity, i.e., to return the permutation. |

`...` |
optionally, further arguments to FUN. |

Based on function `permutations`

from package `gtools`

. This function is required for the computation of the exact p-value of some randomness tests.

A matrix with one permutation, or the value returned by FUN, in each line.

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.