make_pairs {diyar}R Documentation

Record-pair combination.

Description

Create record-pair combination of a vector's elements.

Usage

make_pairs(
  x,
  strata = NULL,
  repeats_allowed = TRUE,
  permutations_allowed = FALSE
)

make_pairs_wf_source(..., data_source = NULL)

Arguments

x

[atomic].

strata

Subsets of x. A blocking attribute limiting the combinations created.

repeats_allowed

[logical] If TRUE, repetitions are included.

permutations_allowed

[logical] If TRUE, permutations are included.

...

Arguments passed to make_pairs.

data_source

[character]. Data source identifier. Limits to record-pairs to those from different sources.

Value

A list of indexes and values of record-pair combinations

See Also

eval_sub_criteria

Examples

make_pairs(month.abb[1:4])
make_pairs(month.abb[1:4], strata = c(1, 1, 2, 2))


[Package diyar version 0.4.1 Index]