get_combinations: Generate All Combinations of spanning variables

View source: R/format_template.R

get_combinationsR Documentation

Generate All Combinations of spanning variables

Description

This function generates all possible combinations of keys from a given named list or vector.

Usage

get_combinations(criteria)

Arguments

criteria

A named list or vector, where the names represent the keys.

Value

A list of combinations, where each combination is a character vector of key names.

Examples

## Not run: 
criteria <- list(key1 = "value1", key2 = "value2", key3 = "value3")
get_combinations(criteria)
# Returns a list of combinations: c("key1"), c("key2"), c("key3"), c("key1", "key2"), ...

## End(Not run)

InseeFrLab/rtauargus documentation built on Feb. 25, 2025, 6:32 a.m.