Learn R Programming

SciencesPo (version 1.3.9)

permutate: Create k random permutations of a vector

Description

Creates a k random permutation of a vector.

Usage

permutate(input, k)

Arguments

input
A vector to be permutated.
k
number of permutations to be conducted.

encoding

UTF-8

Details

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

Examples

Run this code
# row wise permutations
permutate(input=1:5, k=5)

Run the code above in your browser using DataLab