srvyr 1.1.0 Unreleased

  • Uses the new quantile functions provided in version 4.1 of the survey package. The old survey quantile functions can be accessed with survey_old_quantile() and survey_old_median()
  • Adds a new function interact that makes it easier to calculate proportions among interacted groups
  • “Filering joins” (anti_join and semi_join) are now available for srvyr objects. You must put the tbl_svy object first. (#65, #120, @bschneidr)
  • Auto-unpacking of data.frames works even inside of a named data.frame column (like one created by dplyr::across). (#129)
  • Miscellaneous documentation improvements (#119, #126, #127)

srvyr 1.0.1 2021-03-28

  • survey_mean() with no x no longer errors when there are no grouping variables (#117)

srvyr 1.0.0 2020-12-01

srvyr 0.4.0 2020-07-30

  • Fix to ensure that ordered factors can be used as grouping variables or as inputs to survey_count and survey_tally (#92, thanks for reporting @szimmer & @walkerke & for fixing @bschneidr).

  • Fix to ensure that numeric values can be used in grouping variables (#78 & #74, thanks for reporting @tzoltak & fix @bschneidr)

  • Some improvements for dplyr 1.0 (#79) transmute() now works (thanks for reporting @caayala), summarise()’s .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)

srvyr 0.3.10 2020-05-26

  • Another fix for upcoming dplyr
  • Fix in vignette for changes to vardpoor package

srvyr 0.3.9 2020-05-04

srvyr 0.3.8 2020-03-07

  • unweighted now evaluates in the right context and so will provide correct error when an incorrectly interpolated function is used (#70, thanks for reporting @tlmcmurry)

  • filter_at works now, (#57, thanks for reporting @dcaseykc & helping @bschneidr).

  • Fix for upcoming version of tibble (#72).

srvyr 0.3.7 2020-01-17

  • filtering on grouped survey designs now works correctly (#54, thanks for reporting @dcaseykc)

  • Added function pull (#63, thanks @dcaseykc)

  • 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).

srvyr 0.3.6 2019-10-05

srvyr 0.3.5 2019-07-09

  • New functions survey_var and survey_sd to calculate population variance and standard deviaton.

  • Computation of standard errors in all survey_ functions can be suppressed by setting vartype=NULL (#45, thanks @tzoltak).

  • 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.

  • Small updates to replace soft-deprecated dplyr functions with their tibble and tidyselect equivalents (#52, thanks @bschneidr).

srvyr 0.3.4 2019-01-20

  • survey_mean/survey_total allow deff="replace" like their survey package forbearers. (#46, thanks @mandes95)

  • Fixes for new release of dplyr

srvyr 0.3.3 2018-05-22

  • Add warning to explain that design effects cannot be calculated on proportions. (#39, thanks @mlaviolet)

  • Remove dependency on stringr in tests and add DBI to suggests so that test dependencies are correctly specified (#40, thanks CRAN!)

srvyr 0.3.2 2018-05-04

  • Bug fix for calculating multiple quantiles on grouped data (#38, thanks @iantperry)

srvyr 0.3.1 2018-03-10

  • 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 0.3.0 2018-01-24

  • 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 evaluation function 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

srvyr 0.2.2 2017-06-23

  • Remove test blocking survey update

srvyr 0.2.1 2017-04-26

  • 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.

srvyr 0.2.0 2016-09-26

  • Added support for database backed surveys, using dplyr’s handling of DBI. Because of problems interacting with the survey package twophase designs do not work.

srvyr 0.1.2 2016-06-28

srvyr 0.1.1 2016-04-03

  • New function 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.