| Expand | R Documentation | 
Create a Data Frame from All Combinations of Factors
Expand(`_data`, ...)
| _data | Data.frame | 
| ... | vectors, factors or a list containing these | 
Simple wrapper of the 'expand.grid' function. If x is a table then a data frame is returned with one row pr individual observation.
Klaus K. Holst
dd <- Expand(iris, Sepal.Length=2:8, Species=c("virginica","setosa"))
summary(dd)
T <- with(warpbreaks, table(wool, tension))
Expand(T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.