library(dplyr)
cl <- default_cluster()
cluster_library(cl, "dplyr")
mtcars2 <- partition(mtcars, cl)
mtcars2 %>% mutate(cyl2 = 2 * cyl)
mtcars2 %>% filter(vs == 1)
mtcars2 %>% group_by(cyl) %>% summarise(n())
mtcars2 %>% select(-cyl)
Run the code above in your browser using DataLab