Values in fields of datatype "curie" link to other registers. These functions list which registers are linked to by a field or all the fields in a register.

rr_curie_fields() names which fields in a register are of datatype "curie".

rr_curie_links() names which registers are linked to by a field of datatype "curie", or gives a data frame of all fields in a register that are of datatype "curie", and the names of the registers they link to.

rr_curie_fields(x)

# S3 method for register
rr_curie_fields(x)

rr_curie_links(x)

# S3 method for default
rr_curie_links(x)

# S3 method for register
rr_curie_links(x)

Arguments

x

Object of class "register", or a character vector that is a field of a register object (register$data$foo) of datatype "curie".

Examples

register <- rr_register("statistical-geography") rr_curie_fields(register)
#> [1] "area" "organisation"
rr_curie_links(register$data$area)
#> [1] "country" "territory"
rr_curie_links(register$data$organisation)
#> [1] "government-organisation" "local-authority-eng"
rr_curie_links(register)
#> # A tibble: 4 x 2 #> field register #> <chr> <chr> #> 1 area country #> 2 area territory #> 3 organisation government-organisation #> 4 organisation local-authority-eng