diff --git a/dev/articles/semantics.html b/dev/articles/semantics.html index a784f38f..72692284 100644 --- a/dev/articles/semantics.html +++ b/dev/articles/semantics.html @@ -149,7 +149,7 @@

) x1 #> <labelled<integer>[5]> -#> [1] 3 4 5 1 2 +#> [1] 4 2 1 3 5 #> #> Labels: #> value label @@ -174,10 +174,10 @@

do this by either converting to a factor or stripping the labels:

 as_factor(x1)
-#> [1] 3    4    Bad  Good 2   
+#> [1] 4    2    Good 3    Bad 
 #> Levels: Good 2 3 4 Bad
 zap_labels(x1)
-#> [1] 3 4 5 1 2
+#> [1] 4 2 1 3 5
 
 as_factor(x2)
 #> [1] Male   Female Female Female Male  
@@ -200,30 +200,30 @@ 

#> # A tibble: 5 × 3 #> x1 x2 z #> <int+lbl> <chr+lbl> <int> -#> 1 3 M [Male] 1 -#> 2 4 F [Female] 2 -#> 3 5 [Bad] F [Female] 3 -#> 4 1 [Good] F [Female] 4 -#> 5 2 M [Male] 5 +#> 1 4 M [Male] 1 +#> 2 2 F [Female] 2 +#> 3 1 [Good] F [Female] 3 +#> 4 3 F [Female] 4 +#> 5 5 [Bad] M [Male] 5 zap_labels(df) #> # A tibble: 5 × 3 #> x1 x2 z #> <int> <chr> <int> -#> 1 3 M 1 -#> 2 4 F 2 -#> 3 5 F 3 -#> 4 1 F 4 -#> 5 2 M 5 +#> 1 4 M 1 +#> 2 2 F 2 +#> 3 1 F 3 +#> 4 3 F 4 +#> 5 5 M 5 as_factor(df) #> # A tibble: 5 × 3 #> x1 x2 z #> <fct> <fct> <int> -#> 1 3 Male 1 -#> 2 4 Female 2 -#> 3 Bad Female 3 -#> 4 Good Female 4 -#> 5 2 Male 5

+#> 1 4 Male 1 +#> 2 2 Female 2 +#> 3 Good Female 3 +#> 4 3 Female 4 +#> 5 Bad Male 5
diff --git a/dev/news/index.html b/dev/news/index.html index 099bc8de..5af6bf46 100644 --- a/dev/news/index.html +++ b/dev/news/index.html @@ -67,7 +67,8 @@

haven (development version)

-
+

haven 2.5.2

CRAN release: 2023-02-28