implement support for variable attributes for field label incl conversion of logicals to factor

This commit is contained in:
Andreas Gammelgaard Damsbo 2024-11-19 12:54:26 +01:00
commit fe9918dc10
No known key found for this signature in database
6 changed files with 132 additions and 11 deletions

View file

@ -20,5 +20,7 @@ ds <- structure(c(1, 2, 3, 2, 10, 9),
labels = c(Unknown = 9, Refused = 10),
class = "haven_labelled"
)
labelled::is.labelled(ds)
attributes(ds)
ds |> haven_all_levels()
}