Learn R Programming

targeted (version 0.5)

expand.list: 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(...)

Value

list

Arguments

...

input variables

Author

Klaus Kähler Holst

Examples

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

Run the code above in your browser using DataLab