p.q.frame: Permutations of p-q pairs.

View source: R/dataframe.R

p.q.frameR Documentation

Permutations of p-q pairs.

Description

Permutes a pair of variables, p and q, by a data frame such that each frame row contains a unique p-q permutation.

Usage

p.q.frame(v = vector())

Arguments

v

Source vector.

Value

Permutation frame.

Examples

p.q.frame(c("a", "b"))
#>   p q
#> 1 a b
#> 2 b a

p.q.frame(1:3)
#>   p q
#> 1 1 2
#> 2 1 3
#> 3 2 1
#> 4 2 3
#> 5 3 1
#> 6 3 2

royratcliffe/canny.tudor documentation built on Oct. 17, 2022, 4:17 a.m.