complete copy/paste from forcats and haven

This commit is contained in:
Andreas Gammelgaard Damsbo 2024-11-20 14:31:01 +01:00
commit 18544ddcfe
No known key found for this signature in database
8 changed files with 216 additions and 55 deletions

View file

@ -27,6 +27,8 @@ Get named vector of factor levels and values
structure(c(1, 2, 3, 2, 10, 9),
labels = c(Unknown = 9, Refused = 10),
class = "haven_labelled"
) |> as_factor() |> named_levels()
) |>
as_factor() |>
named_levels()
}
}