R/as_factor.R
is.labelled.Rd
Tests for multiple label classes
is.labelled(x, classes = c("haven_labelled", "labelled"))
data
classes to test
logical
structure(c(1, 2, 3, 2, 10, 9), labels = c(Unknown = 9, Refused = 10), class = "haven_labelled" ) |> is.labelled() #> [1] TRUE