expand(mtcars, vs, cyl)
expand(mtcars, cyl, mpg = seq_range(mpg, 2))
expand(mtcars, cyl, mpg = seq_range(mpg, 5))
df <- data.frame(a = c(1, 2, 5), b = c(3, 5, 3), c = c(1, 2, 3))
expand(df)
expand(df, a, b)
expand(df, a, c)
expand(df, b, c)
Run the code above in your browser using DataLab