Closed fugufisch closed 7 years ago
It seems one can wrap groups in lazyeval::all_dots()
. Here's an example adapted from the vignette:
dots <- list(~carrier, lazyeval::interp(~VarName, VarName = as.name('year')))
dots
#> [[1]]
#> ~carrier
#>
#> [[2]]
#> ~year
flights1 <- multidplyr:::partition_(flights, group = lazyeval::all_dots(dots))
flights2 <- summarise(flights1, dep_delay = mean(dep_delay, na.rm = TRUE))
flights3 <- collect(flights2)
Not sure if this is appropriate for all cases and it may not be good advice.
Fixed in #41
I'd like to use
partition
for programming like I usegroup_by_
indplyr
. I tried to export the existingpartition_
function inmultidplyr
, but that didn't do the trick.