Works like expand.grid but for data frames.

combine_df(...)

Arguments

...

Data frames that should be combined to one data frame. Elements of first df vary fastest, elements of last df vary slowest.

Examples

combine_df(
  data.frame(x=1:3, y=3:1),
  data.frame(x1=c("a", "b"), x2=c("c", "d")),
  data.frame(z=c(0, 1)))