cur_svy_wts()to access the survey weights (#136, #139, thanks @ray-p144 and @bschneidr)
filter(#138, #139, thanks @ray-p144 and @bschneidr)
cascade()(#133, thanks @szimmer)
1234) in cascade (#132, thanks @szimmer)
interactthat makes it easier to calculate proportions among interacted groups
semi_join) are now available for srvyr objects. You must put the
tbl_svyobject first. (#65, #120, @bschneidr)
summarize has been rearchitected,
objects in the
summarize will refer to the output of
summarize before the input. Meaning code that looks like
will now error because it calculates the mean of
before using it inside of the calculation for
This behavior better matches
dplyr’s so will likely be
drop_na from tidyr (#107).
as_survey_() are now
idempotent: given a
srvyr survey object (a
tbl_srv), they return it unchanged. If extra arguments are
provided, they are ignored with a warning (#97, thanks
Some improvements for dplyr 1.0 (#79)
now works (thanks for reporting @caayala),
.groups argument is respected, and multi-row returns to
summarise() work. (Unfortunately the new
across() function isn’t quite supported in
summarise() yet, it will hopefully come soon)
df parameter now set to be degrees of freedom of
survey for quantiles and variance to match other functions.
Updated tests to work with upcoming version of survey (#66).
New functions survey_var and survey_sd to calculate population variance and standard deviaton.
Fixed an issue where you’d get an error when summarize components returned different lengths of data - usually when factor levels were not present in the data (#49).
Removed references to MonetDBLite since it has been removed from CRAN.
When converting from a survey db-backed survey to a srvyr one srvyr now tries to capture the updates you’ve already sent. If dbplyr can convert the function, then it will bring the update. If it can’t it will warn you (#35).
Small bug fixes, mostly having to do with CRAN checks, running on CI services, or for upstream rev dep checks.
srvyr now uses tidy evaluation from rlang. The “underscore”
functions have been soft deprecated in favor of quosure splicing. See
dplyr’s vignette “programming” for more details. In almost all cases,
the old syntax will still work, with one exception: the standard
as_survey_twophase_() had to be changed
slightly so that the entire list is inside quotation.
Datbase support has been rewritten. It should be faster now and doesn’t require a unique identifier. You also can now convert survey db-backed surveys to srvyr with as_survey.
srvyr now has a pkgdown site, check it out at http://gdfe.co/srvyr/
Added support for dplyr mutate_at/_if/_all and summarize_at/_if/_all for srvyr surveys.
Fixed a few bugs introduced with dplyr 0.6. This version of srvyr will work with both old versions of dplyr and 0.6, but may be full of warnings if you update dplyr. Full support for the new dplyr is coming soon.
Fixed a problem with confidence levels not being passed into quantiles
mutate match dplyr’s
behavior when arguments aren’t named (uses
cascade summarizes groups, and cascades
to create summary statistics of groups of groups.
Fixed a bug for confidence intervals for
survey_total() on groups.
Fixed some issues with the upcoming version of dplyr.