powered by
Similar to expand.grid function, this function creates all combinations of the input arguments but returns the result as a list.
expand.grid
expand.list(..., INPUT = NULL, envir = NULL)
list
input variables
optional list of variables
environment environment to evalute formulas in
Klaus Kähler Holst
expand.list(x = 2:4, z = c("a", "b"))
Run the code above in your browser using DataLab