rsp: Generates a random stratified permutation

Description Usage Arguments Value Examples

View source: R/group.R

Description

rsp returns an element of the stabilizer of A in the symmetric group on |A| elements.

Usage

1
rsp(A)

Arguments

A

A vector.

Value

A vector representing a permutation

Examples

1
2
A <- c(0, 0, 0, 0, 1, 1, 1, 1)
rsp(A)

gwb/RGroupFormation documentation built on Sept. 13, 2020, 4:41 p.m.