Skip to contents

Returns the record sets of a dataset that hold its data: every record set whose data type is neither sc:Enumeration nor cr:Split. Enumeration record sets list the values of categorical fields; enumerations() returns them.

Usage

record_sets(x, ...)

Arguments

x

Croissant object.

...

Not used.

Value

Named list of RecordSet objects, named by @id, in document order.

Author

EDG

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(record_sets(x))
#> [1] "default"
record_sets(x)[["default"]]
#> <RecordSet>
#>   default
#>   files  filec2e2573239d9.csv
#>   Fields (2)
#>     age  Integer  column age
#>     sex  Text     column sex → default_sex_levels/label
unlink(file)