diff --git a/apple-touch-icon-120x120.png b/apple-touch-icon-120x120.png index 9e6f2dabc..4b9855b9e 100644 Binary files a/apple-touch-icon-120x120.png and b/apple-touch-icon-120x120.png differ diff --git a/apple-touch-icon-152x152.png b/apple-touch-icon-152x152.png index a8eed5724..f4c30ed77 100644 Binary files a/apple-touch-icon-152x152.png and b/apple-touch-icon-152x152.png differ diff --git a/apple-touch-icon-180x180.png b/apple-touch-icon-180x180.png index b37a7bc16..2910cd946 100644 Binary files a/apple-touch-icon-180x180.png and b/apple-touch-icon-180x180.png differ diff --git a/apple-touch-icon-60x60.png b/apple-touch-icon-60x60.png index 431bd65e9..dcc89fdd6 100644 Binary files a/apple-touch-icon-60x60.png and b/apple-touch-icon-60x60.png differ diff --git a/apple-touch-icon-76x76.png b/apple-touch-icon-76x76.png index 38e68ce45..f20245dfd 100644 Binary files a/apple-touch-icon-76x76.png and b/apple-touch-icon-76x76.png differ diff --git a/apple-touch-icon.png b/apple-touch-icon.png index 2ee440944..82f937ebd 100644 Binary files a/apple-touch-icon.png and b/apple-touch-icon.png differ diff --git a/articles/standardize_data_files/figure-html/unnamed-chunk-16-1.png b/articles/standardize_data_files/figure-html/unnamed-chunk-16-1.png index 5ccd7e160..27ade8c1f 100644 Binary files a/articles/standardize_data_files/figure-html/unnamed-chunk-16-1.png and b/articles/standardize_data_files/figure-html/unnamed-chunk-16-1.png differ diff --git a/favicon-16x16.png b/favicon-16x16.png index 00d4fa930..507638160 100644 Binary files a/favicon-16x16.png and b/favicon-16x16.png differ diff --git a/favicon-32x32.png b/favicon-32x32.png index 562a211cf..55d25bda2 100644 Binary files a/favicon-32x32.png and b/favicon-32x32.png differ diff --git a/pkgdown.yml b/pkgdown.yml index bcdecdd05..481b09774 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -5,7 +5,7 @@ articles: selection_syntax: selection_syntax.html standardize_data: standardize_data.html tidyverse_translation: tidyverse_translation.html -last_built: 2023-09-07T18:33Z +last_built: 2023-09-07T18:44Z urls: reference: https://easystats.github.io/datawizard/reference article: https://easystats.github.io/datawizard/articles diff --git a/reference/adjust-1.png b/reference/adjust-1.png index 433c1b9e4..6d50b1367 100644 Binary files a/reference/adjust-1.png and b/reference/adjust-1.png differ diff --git a/reference/adjust.html b/reference/adjust.html index 013594be7..1055838ac 100644 --- a/reference/adjust.html +++ b/reference/adjust.html @@ -274,36 +274,36 @@

Examples# \donttest{ adjust(attitude, effect = "complaints", select = "rating", bayesian = TRUE) #> rating complaints privileges learning raises critical advance -#> 1 -9.81353658 51 30 39 61 92 45 -#> 2 0.35286546 64 51 54 63 73 47 -#> 3 3.81428179 70 68 69 76 86 48 -#> 4 -0.89070393 63 45 47 54 84 35 -#> 5 7.76283689 78 56 66 71 83 47 -#> 6 -12.83925903 55 49 44 54 49 34 -#> 7 -6.91642637 67 42 56 66 68 35 -#> 8 0.03212873 75 50 55 70 66 41 -#> 9 -4.26288556 82 72 67 71 83 31 -#> 10 6.62215730 61 45 47 62 80 41 -#> 11 9.67360219 53 53 58 58 67 34 -#> 12 7.37858791 60 47 39 59 74 41 -#> 13 7.86572669 62 57 42 55 63 25 -#> 14 -9.01931617 83 83 45 59 77 35 -#> 15 4.51926751 77 54 72 79 77 46 -#> 16 -1.31433045 90 50 72 60 54 36 -#> 17 -4.53217739 85 64 69 79 79 63 -#> 18 5.37858791 60 65 75 55 80 60 -#> 19 -2.18571821 70 46 57 75 85 46 -#> 20 -8.10855087 58 68 54 64 78 52 -#> 21 5.50720015 40 33 34 43 64 33 -#> 22 3.62215730 61 52 62 66 80 41 -#> 23 -11.15999576 66 52 50 63 80 37 -#> 24 -2.22350801 37 42 58 50 57 49 -#> 25 7.91717158 54 42 48 66 75 33 -#> 26 -6.48073249 77 66 63 88 76 72 -#> 27 7.03212873 75 58 74 80 78 49 -#> 28 -9.35212025 57 44 45 51 83 38 -#> 29 6.46782261 85 71 71 77 74 55 -#> 30 5.73711444 82 39 59 64 78 39 +#> 1 -9.73191122 51 30 39 61 92 45 +#> 2 0.41676961 64 51 54 63 73 47 +#> 3 3.87000692 70 68 69 76 86 48 +#> 4 -0.82543660 63 45 47 54 84 35 +#> 5 7.80765667 78 56 66 71 83 47 +#> 6 -12.76308635 55 49 44 54 49 34 +#> 7 -6.85661173 67 42 56 66 68 35 +#> 8 0.08103801 75 50 55 70 66 41 +#> 9 -4.22351846 82 72 67 71 83 31 +#> 10 6.69015096 61 45 47 62 80 41 +#> 11 9.75250122 53 53 58 58 67 34 +#> 12 7.44794474 60 47 39 59 74 41 +#> 13 7.93235718 62 57 42 55 63 25 +#> 14 -8.98131224 83 83 45 59 77 35 +#> 15 4.56545045 77 54 72 79 77 46 +#> 16 -1.28586872 90 50 72 60 54 36 +#> 17 -4.49689981 85 64 69 79 79 63 +#> 18 5.44794474 60 65 75 55 80 60 +#> 19 -2.12999308 70 46 57 75 85 46 +#> 20 -8.03646769 58 68 54 64 78 52 +#> 21 5.60382038 40 33 34 43 64 33 +#> 22 3.69015096 61 52 62 66 80 41 +#> 23 -11.09881795 66 52 50 63 80 37 +#> 24 -2.12279827 37 42 58 50 57 49 +#> 25 7.99470743 54 42 48 66 75 33 +#> 26 -6.43454955 77 66 63 88 76 72 +#> 27 7.08103801 75 58 74 80 78 49 +#> 28 -9.27867391 57 44 45 51 83 38 +#> 29 6.50310019 85 71 71 77 74 55 +#> 30 5.77648154 82 39 59 64 78 39 adjust(attitude, effect = "complaints", select = "rating", additive = TRUE) #> rating complaints privileges learning raises critical advance #> 1 -9.86142016 51 30 39 61 92 45 diff --git a/reference/recode_into.html b/reference/recode_into.html index ecfa496e3..cdbff2663 100644 --- a/reference/recode_into.html +++ b/reference/recode_into.html @@ -103,7 +103,7 @@

Usage data = NULL, default = NA, overwrite = TRUE, - preserve_na = TRUE, + preserve_na = FALSE, verbose = TRUE ) @@ -137,10 +137,13 @@

ArgumentsExamples default = 0 ) #> [1] 1 1 1 0 0 2 2 0 1 1 2 0 0 0 2 1 1 2 1 0 1 1 0 2 0 1 2 2 1 2 + +# handling of missing values +d <- data.frame( + x = c(1, NA, 2, NA, 3, 4), + y = c(1, 11, 3, NA, 5, 6) +) +# first NA in x is overwritten by valid value from y +# we have no known value for second NA in x and y, +# thus we get one NA in the result +recode_into( + x <= 3 ~ 1, + y > 5 ~ 2, + data = d, + default = 0, + preserve_na = TRUE +) +#> [1] 1 2 1 NA 1 2 +# first NA in x is overwritten by valid value from y +# default value is used for second NA +recode_into( + x <= 3 ~ 1, + y > 5 ~ 2, + data = d, + default = 0, + preserve_na = FALSE +) +#> Missing values in original variable are overwritten by default value. If +#> you want to preserve missing values, set `preserve_na = TRUE`. +#> [1] 1 2 1 0 1 2