list_conditions: list_conditions

View source: R/list_conditions_funs.R

list_conditionsR Documentation

list_conditions

Description

This function belongs in the interior of list_conditions_datagen and list_conditions_estimate. It takes the arguments passed to its parent function and returns a list of all combinations of those arguments.

Usage

list_conditions()

Details

The argument combinations are created using cross to create a list where each element is a combination (list length is equal to the number of combinations), and then the list is transformed using transpose to flip it "inside out" such that the result has length equal to the number of arguments passed to the parent function, and each argument has length equal to the number of combinations.

Value

A named list of all combinations of arguments given in the parent function. The list has length equal to the number of arguments passed to the function and each argument has length equal to the number of combinations.


tessaleejohnson/corclus documentation built on Oct. 11, 2022, 3:46 a.m.