SciencesPo (version 1.3.8)

permutate: Create k random permutations of a vector

Description

Create k random permutations of a vector

Usage

permutate(input, k)

Arguments

input
vector to be permutated.
k
number of permutations.

encoding

UTF-8

Details

should be used only for length(input)! >> k

Examples

Run this code
permutate(input=1:5, k=5)

Run the code above in your browser using DataCamp Workspace