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 @@
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
CRAN release: 2023-02-28