New functions
top_frac(data, proportion)
is a shorthand fortop_n(data, proportion * n())
(#4017).
colwise changes
-
Using quosures in colwise verbs is deprecated (#4330).
-
Updated
distinct_if()
,distinct_at()
anddistinct_all()
to include.keep_all
argument (@beansrowning, #4343). -
rename_at()
handles empty selection (#4324). -
*_if()
functions correctly handle columns with special names (#4380). -
colwise functions support constants in formulas (#4374).
Hybrid evaluation changes
-
hybrid rank functions correctly handle NA (#4427).
-
first()
,last()
andnth()
hybrid version handles factors (#4295).
Minor changes
-
top_n()
quotes itsn
argument,n
no longer needs to be constant for all groups (#4017). -
tbl_vars()
keeps information on grouping columns by returning adplyr_sel_vars
object (#4106). -
group_split()
always sets theptype
attribute, which make it more robust in the case where there
are 0 groups. -
group_map()
andgroup_modify()
work in the 0 group edge case (#4421) -
select.list()
method added so thatselect()
does not dispatch on lists (#4279). -
view()
is reexported from tibble (#4423). -
group_by()
puts NA groups last in character vectors (#4227). -
arrange()
handles integer64 objects (#4366). -
summarise()
correctly resolves summarised list columns (#4349).