Returns the record sets that list the values of categorical fields: every
record set whose data type includes sc:Enumeration, or cr:Split, the
enumeration of a dataset's splits. A field that references a field of an
sc:Enumeration record set reads as a factor with read_record_set().
Examples
file <- tempfile(fileext = ".csv")
x <- croissant_from_data(
data.frame(age = c(22L, 38L), sex = factor(c("male", "female"))),
file = file,
name = "people"
)
names(enumerations(x))
#> [1] "default_sex_levels"
unlink(file)