View source: R/e_expand_grid_df.R
e_expand_grid_df | R Documentation |
expand.grid
for data.frames. Create a data frame from all combinations of the supplied data frames.
e_expand_grid_df(...)
... |
a list of data.frames |
A data frame containing one block of rows for each combination of the supplied data frames. The last data frames vary fastest. The columns retain their original names except for identical names in different data frames, in which case the suffix ".x", ".y", etc., are added in the returned data frame but may not be unique.
df1 <- data.frame(A = 1:3, B = 11:13)
df2 <- data.frame(C = 51:52, D = c("Y", "N"))
df3 <- data.frame(E = c("+", "-"))
e_expand_grid_df(df1, df2, df3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.