combine_df: Create a data frame from all combinations of data frames

Description Usage Arguments Examples

View source: R/make-newdata.R

Description

Works like expand.grid but for data frames.

Usage

1

Arguments

...

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

Examples

1
2
3
4
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)))

adibender/ped documentation built on Dec. 16, 2019, 12:33 a.m.