Hello,
I want to be able to pass all variables into the second argument of expand() without writing all of the variables out. I was hoping I could do something like a full stop or !! but I am not exactly finding the right way to pass it on.
library(tidyverse)
df_initial <- data_frame(V1 = c(0,1),
V2 = c(0,1),
V3 = c(0,1),
V4 = c(0,1),
V5 = c(0,1),
V6 = c(0,1),
V7 = c(0,1),
V8 = c(0,1),
V9 = c(0,1)
)
df_all_combinations <- tidyr::expand(df_initial,V1,V2,V3,V4,V5,V6,V7,V8,V9)