1.0.1
srvyr 1.0.1
survey_mean()
with nox
no longer errors when there are no grouping variables (#117)
srvyr 1.0.0
-
summarize
has been rearchitected,- main user facing improvements are:
dplyr::across()
now works within it- dplyr functions like
dplyr::cur_group()
,dplyr::cur_group_id()
,dplyr::cur_data()
work in it (as well as new anlagous functions srvyr-specificcur_svy()
and
cur_svy_full()
)
- The only known breaking change is:
- objects in the
summarize
will refer to the output ofsummarize
before the input.
Meaning code that looks like this:will now error because it calculates the mean ofdstrata %>% summarize(api99 = survey_mean(api99), api_diff = survey_mean(api00 - api99))
api99
before using it inside of the
calculation forapi_diff
. This behavior better matchesdplyr
's so will likely be
kept.
- objects in the
- main user facing improvements are:
-
Support for
group_map()
/group_walk()
/group_map_dfr()
,group_split()
,
group_nest()
andnest_by()
were added fortbl_svy
objects. -
Support
drop_na
from tidyr (#107). -
as_survey()
andas_survey_()
are now idempotent: given asrvyr
survey object (atbl_srv
), they return it unchanged. If extra arguments are provided, they are ignored with a warning (#97, thanks @krivit).