list.expand | R Documentation |
Create a list from all combinations of the supplied vectors or lists, extending the functionality of expand.grid from data frame to list.
list.expand(...)
... |
vectors or lists |
A list of all combinations of the supplied vectors or lists.
list.expand(x=1:10, y=c("a","b","c")) list.expand(x=list(c(1,2), c(2,3)), y = c("a","b","c")) list.expand( a=list(list(x=1,y="a"), list(x=2, y="b")), b=list(c("x","y"), c("y","z","w")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.