expand.list: Create a list from all combination of input variables

View source: R/expand.list.R

expand.listR Documentation

Create a list from all combination of input variables

Description

Similar to expand.grid function, this function creates all combinations of the input arguments but returns the result as a list.

Usage

expand.list(..., INPUT = NULL, envir = NULL)

Arguments

...

input variables

INPUT

optional list of variables

envir

environment environment to evalute formulas in

Value

list

Author(s)

Klaus Kähler Holst

Examples

expand.list(x = 2:4, z = c("a", "b"))

targeted documentation built on Jan. 12, 2026, 9:08 a.m.