1.0.1
srvyr 1.0.1
survey_mean()with noxno longer errors when there are no grouping variables (#117)
srvyr 1.0.0
-
summarizehas 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
summarizewill refer to the output ofsummarizebefore 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))
api99before 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_svyobjects. -
Support
drop_nafrom tidyr (#107). -
as_survey()andas_survey_()are now idempotent: given asrvyrsurvey object (atbl_srv), they return it unchanged. If extra arguments are provided, they are ignored with a warning (#97, thanks @krivit).