Introduction#
We’re delighted to announce the release of dplyr 0.8.1 on CRAN 🎉 !
This is a minor release that address follow ups from the community after the release of the 0.8.0 version .
group_map() and group_modify()#
Shortly after the release of 0.8.0, we were notified by several members of the
community that group_map() was great, except it didn’t do what they had expected 😬.
Because the function was (and still is) marked as experimental, we allowed ourselves to rectify the situation:
- The name
group_map()is now used for iterating on groups of grouped tibbles, characterised by.xand.yas before, but making no assumptions about the return type of each operation and combining the results in a list. We can see this as iterating, in the purrr::map() sense on the groups.
|
|
- The behaviour we previously had was renamed
group_modify()to loosely echo purrr::modify() . In particular,group_modify()always returns a grouped tibble, which combines the tibbles returned by evaluating each operation with a reconstructed grouping structure.
|
|
Attention to details in column wise functions#
As we are phasing funs() out and prefer use of purrr-style lambda functions
in column wise verbs, we missed a few subtleties.
Specifically, lambdas can now refer to:
- local variables (from the scope):
|
|
- other columns of the data (from the data mask):
|
|
Thanks#
Thanks to all contributors for this release.
@abalter , @ambevill , @amitusa17 , @AntoineHffmnn , @anuj2054 , @batpigandme , @behrman , @billdenney , @burchill , @cgrandin , @clemenshug , @codetrainee , @ColinFay , @dan-reznik , @davidsjoberg , @DesiQuintans , @dirkschumacher , @earowang , @echasnovski , @eipi10 , @grabear , @grandtiger , @gregorp , @hadley , @hanyroze , @hidekoji , @huftis , @iago-pssjd , @javierluraschi , @jennybc , @jgellar , @jhrcook , @jimhester , @joel23888 , @JohnMount , @johnmous , @jonathan-g , @jwbeck97 , @jzadra , @karimn , @kendonB , @koncina , @kperkins , @kputschko , @krlmlr , @kyzphong , @lionel- , @llrs , @mariodejung , @MichaelAdolph , @michaelwhammer , @MilesMcBain , @mjherold , @moodymudskipper , @msberends , @mvkorpel , @nathancday , @nicokuz , @nolistic , @oscci , @paulponcet , @PhilippRuchser , @philstraforelli , @psychometrician , @Ranonymous , @rinebob , @romagnolid , @romainfrancois , @rvg02010 , @slyrus , @snp , @sowla , @ThiAmm , @thothal , @wfmackey , @will458 , @wkdavis , @yutannihilation , @ZahraEconomist , and @zooman .
