From 3cce30b1015d3d89de6051a7183e8a43964c175a Mon Sep 17 00:00:00 2001 From: Greg Freedman Ellis Date: Mon, 9 Mar 2020 15:44:33 -0500 Subject: [PATCH] update pkgdown --- docs/404.html | 2 +- docs/CODE_OF_CONDUCT.html | 2 +- docs/articles/extending-srvyr.html | 6 ++--- .../header-attrs-2.1/header-attrs.js | 12 +++++++++ docs/articles/index.html | 2 +- docs/articles/srvyr-database.html | 6 ++--- .../header-attrs-2.1/header-attrs.js | 12 +++++++++ docs/articles/srvyr-vs-survey.html | 6 ++--- .../header-attrs-2.1/header-attrs.js | 12 +++++++++ docs/authors.html | 2 +- docs/index.html | 2 +- docs/news/index.html | 15 +++++++++-- docs/reference/as_survey.html | 2 +- docs/reference/as_survey_design.html | 2 +- docs/reference/as_survey_rep.html | 2 +- docs/reference/as_survey_twophase.html | 2 +- docs/reference/as_tibble.html | 2 +- docs/reference/cascade.html | 2 +- docs/reference/collect.html | 2 +- docs/reference/current_svy.html | 2 +- docs/reference/dplyr_single.html | 2 +- docs/reference/get_var_est.html | 2 +- docs/reference/group_by.html | 2 +- docs/reference/groups.html | 2 +- docs/reference/index.html | 2 +- docs/reference/pipe.html | 2 +- docs/reference/rlang-tidyeval.html | 2 +- docs/reference/set_survey_vars.html | 2 +- docs/reference/srvyr-se-deprecated.html | 2 +- docs/reference/srvyr.html | 2 +- docs/reference/summarise.html | 2 +- docs/reference/summarise_all.html | 2 +- docs/reference/survey_mean.html | 2 +- docs/reference/survey_quantile.html | 2 +- docs/reference/survey_ratio.html | 2 +- docs/reference/survey_tally.html | 2 +- docs/reference/survey_total.html | 2 +- docs/reference/survey_var.html | 2 +- docs/reference/svychisq.html | 2 +- docs/reference/tbl_svy.html | 2 +- docs/reference/tbl_vars.html | 2 +- docs/reference/unweighted.html | 25 ++++++++++++++++++- 42 files changed, 116 insertions(+), 46 deletions(-) create mode 100644 docs/articles/extending-srvyr_files/header-attrs-2.1/header-attrs.js create mode 100644 docs/articles/srvyr-database_files/header-attrs-2.1/header-attrs.js create mode 100644 docs/articles/srvyr-vs-survey_files/header-attrs-2.1/header-attrs.js diff --git a/docs/404.html b/docs/404.html index 39c1d17..bbbd62b 100644 --- a/docs/404.html +++ b/docs/404.html @@ -68,7 +68,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/CODE_OF_CONDUCT.html b/docs/CODE_OF_CONDUCT.html index b63d6d8..7c0bc91 100644 --- a/docs/CODE_OF_CONDUCT.html +++ b/docs/CODE_OF_CONDUCT.html @@ -68,7 +68,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/articles/extending-srvyr.html b/docs/articles/extending-srvyr.html index 3e9b0f9..b8802e6 100644 --- a/docs/articles/extending-srvyr.html +++ b/docs/articles/extending-srvyr.html @@ -32,7 +32,7 @@ srvyr - 0.3.7 + 0.3.8 @@ -89,13 +89,13 @@ -
+
diff --git a/docs/articles/srvyr-database.html b/docs/articles/srvyr-database.html index 7612576..6ef5be8 100644 --- a/docs/articles/srvyr-database.html +++ b/docs/articles/srvyr-database.html @@ -32,7 +32,7 @@ srvyr - 0.3.7 + 0.3.8
@@ -89,13 +89,13 @@ -
+
@@ -89,14 +89,14 @@ -
+
diff --git a/docs/index.html b/docs/index.html index 5f52c1f..e897819 100644 --- a/docs/index.html +++ b/docs/index.html @@ -34,7 +34,7 @@ srvyr - 0.3.7 + 0.3.8
diff --git a/docs/news/index.html b/docs/news/index.html index d6e1937..610e1ce 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -68,7 +68,7 @@ srvyr - 0.3.7 + 0.3.8
@@ -132,9 +132,19 @@

Changelog

Source: NEWS.md
+
+

+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 Unreleased +srvyr 0.3.7 2020-01-17

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

  • @@ -260,6 +270,7 @@

    Contents

    diff --git a/docs/reference/as_survey_design.html b/docs/reference/as_survey_design.html index 9e433b9..f350d4d 100644 --- a/docs/reference/as_survey_design.html +++ b/docs/reference/as_survey_design.html @@ -70,7 +70,7 @@ srvyr - 0.3.7 + 0.3.8

diff --git a/docs/reference/as_survey_rep.html b/docs/reference/as_survey_rep.html index be68df7..0a1d89a 100644 --- a/docs/reference/as_survey_rep.html +++ b/docs/reference/as_survey_rep.html @@ -70,7 +70,7 @@ srvyr - 0.3.7 + 0.3.8
diff --git a/docs/reference/as_survey_twophase.html b/docs/reference/as_survey_twophase.html index 358aa2e..27bfe7f 100644 --- a/docs/reference/as_survey_twophase.html +++ b/docs/reference/as_survey_twophase.html @@ -74,7 +74,7 @@ srvyr - 0.3.7 + 0.3.8
diff --git a/docs/reference/as_tibble.html b/docs/reference/as_tibble.html index bab6811..797ffa3 100644 --- a/docs/reference/as_tibble.html +++ b/docs/reference/as_tibble.html @@ -70,7 +70,7 @@ srvyr - 0.3.7 + 0.3.8
diff --git a/docs/reference/cascade.html b/docs/reference/cascade.html index 4e22e0d..6847228 100644 --- a/docs/reference/cascade.html +++ b/docs/reference/cascade.html @@ -71,7 +71,7 @@ srvyr - 0.3.7 + 0.3.8
diff --git a/docs/reference/collect.html b/docs/reference/collect.html index c2ab29c..b002329 100644 --- a/docs/reference/collect.html +++ b/docs/reference/collect.html @@ -74,7 +74,7 @@ srvyr - 0.3.7 + 0.3.8
diff --git a/docs/reference/current_svy.html b/docs/reference/current_svy.html index bb204d1..03524fd 100644 --- a/docs/reference/current_svy.html +++ b/docs/reference/current_svy.html @@ -74,7 +74,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/reference/dplyr_single.html b/docs/reference/dplyr_single.html index 5c1c7a0..db2c71d 100644 --- a/docs/reference/dplyr_single.html +++ b/docs/reference/dplyr_single.html @@ -70,7 +70,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/reference/get_var_est.html b/docs/reference/get_var_est.html index 40cdbce..a4b9211 100644 --- a/docs/reference/get_var_est.html +++ b/docs/reference/get_var_est.html @@ -75,7 +75,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/reference/group_by.html b/docs/reference/group_by.html index 5fc26a3..be603c0 100644 --- a/docs/reference/group_by.html +++ b/docs/reference/group_by.html @@ -73,7 +73,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/reference/groups.html b/docs/reference/groups.html index 872ae92..289d83c 100644 --- a/docs/reference/groups.html +++ b/docs/reference/groups.html @@ -73,7 +73,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/reference/index.html b/docs/reference/index.html index f7ef2d0..746b572 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -68,7 +68,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/reference/pipe.html b/docs/reference/pipe.html index 300f8e5..b25ee02 100644 --- a/docs/reference/pipe.html +++ b/docs/reference/pipe.html @@ -70,7 +70,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/reference/rlang-tidyeval.html b/docs/reference/rlang-tidyeval.html index fda2de6..54c3256 100644 --- a/docs/reference/rlang-tidyeval.html +++ b/docs/reference/rlang-tidyeval.html @@ -73,7 +73,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/reference/set_survey_vars.html b/docs/reference/set_survey_vars.html index df72ed3..32d88d8 100644 --- a/docs/reference/set_survey_vars.html +++ b/docs/reference/set_survey_vars.html @@ -75,7 +75,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/reference/srvyr-se-deprecated.html b/docs/reference/srvyr-se-deprecated.html index 65fd954..1480dfa 100644 --- a/docs/reference/srvyr-se-deprecated.html +++ b/docs/reference/srvyr-se-deprecated.html @@ -74,7 +74,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/reference/srvyr.html b/docs/reference/srvyr.html index 8f72ead..0b5b120 100644 --- a/docs/reference/srvyr.html +++ b/docs/reference/srvyr.html @@ -73,7 +73,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/reference/summarise.html b/docs/reference/summarise.html index 96c6c05..0fa0624 100644 --- a/docs/reference/summarise.html +++ b/docs/reference/summarise.html @@ -70,7 +70,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/reference/summarise_all.html b/docs/reference/summarise_all.html index c9f3eae..06fe68f 100644 --- a/docs/reference/summarise_all.html +++ b/docs/reference/summarise_all.html @@ -71,7 +71,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/reference/survey_mean.html b/docs/reference/survey_mean.html index 0af167d..9b072dc 100644 --- a/docs/reference/survey_mean.html +++ b/docs/reference/survey_mean.html @@ -73,7 +73,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/reference/survey_quantile.html b/docs/reference/survey_quantile.html index 86beff7..cc31ef5 100644 --- a/docs/reference/survey_quantile.html +++ b/docs/reference/survey_quantile.html @@ -72,7 +72,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/reference/survey_ratio.html b/docs/reference/survey_ratio.html index a5ab0c8..e7163d6 100644 --- a/docs/reference/survey_ratio.html +++ b/docs/reference/survey_ratio.html @@ -72,7 +72,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/reference/survey_tally.html b/docs/reference/survey_tally.html index ef8bfda..b258dd2 100644 --- a/docs/reference/survey_tally.html +++ b/docs/reference/survey_tally.html @@ -74,7 +74,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/reference/survey_total.html b/docs/reference/survey_total.html index 49be546..52b182a 100644 --- a/docs/reference/survey_total.html +++ b/docs/reference/survey_total.html @@ -72,7 +72,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/reference/survey_var.html b/docs/reference/survey_var.html index 4158348..a6a711a 100644 --- a/docs/reference/survey_var.html +++ b/docs/reference/survey_var.html @@ -72,7 +72,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/reference/svychisq.html b/docs/reference/svychisq.html index 5f11e3d..de24a3a 100644 --- a/docs/reference/svychisq.html +++ b/docs/reference/svychisq.html @@ -70,7 +70,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/reference/tbl_svy.html b/docs/reference/tbl_svy.html index f53ca29..09defd3 100644 --- a/docs/reference/tbl_svy.html +++ b/docs/reference/tbl_svy.html @@ -72,7 +72,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/reference/tbl_vars.html b/docs/reference/tbl_vars.html index 5531d39..ea0785d 100644 --- a/docs/reference/tbl_vars.html +++ b/docs/reference/tbl_vars.html @@ -70,7 +70,7 @@ srvyr - 0.3.7 + 0.3.8 diff --git a/docs/reference/unweighted.html b/docs/reference/unweighted.html index 0f2835b..5da09b1 100644 --- a/docs/reference/unweighted.html +++ b/docs/reference/unweighted.html @@ -71,7 +71,7 @@ srvyr - 0.3.7 + 0.3.8 @@ -161,6 +161,13 @@

Arg +

Details

+ +

Uses tidy evaluation semantics and so if you want to use +wrapper functions based on variable names, you must use +tidy evaluation, see the examples here, documentation in +nse-force, or the dplyr vignette called +'programming' for more information.

Examples

library(survey) @@ -184,12 +191,28 @@

Examp #> 1 E 38.6 #> 2 H 8.46 #> 3 M 26.4

+ +# If you want to use a wrapper function, be sure to treat +# non-standard evaluation correctly +umean <- function(x) { + unweighted(mean({{x}})) +} + dstrata %>% + group_by(stype) %>% + summarize(api_diff_unw = umean(api00 - api99))
#> # A tibble: 3 x 2 +#> stype api_diff_unw +#> <fct> <dbl> +#> 1 E 38.6 +#> 2 H 8.46 +#> 3 M 26.4
+