Skip to contents

Compute pairs of colnames based on the following architecture: Suppose a dataframe with column ordered as follow : c("A", "B", "C", "D") The pairs will be computed as follow AA AB AC BA BB BC CA CB CC

Usage

column_pairs(data)

Arguments

data

Dataframe

Value

A list containing each pair. Would look like this [1] 1 "A" "A"

[2] 1 "A" "B"

[3] 1 "A" "C"

[4] 1 "B" "A"

[5] 1 "B" "B"

[6] 1 "B" "C"

[7] 1 "C" "A"

[8] 1 "C" "B" [9] 1 "C" "C"