fcds_const: List Expected or Valid FCDS Constants

Description Usage Arguments Value Examples

Description

Lists the expected values in the processed, cached FCDS data using the built-in recoding, or alternatively returns a tibble containing information about the cleaned column and value labels and the original data values.

Usage

1
2
fcds_const(var = "year_group", full = FALSE,
  fcds_recoding_file = NULL)

Arguments

var

An FCDS variable or a package constant. Set to NULL for a list of valid variables.

full

If FALSE, returns only the values that are expected in the cleaned FCDS data. If TRUE, returns information regarding the original variable name (name_original) and value (value) and the cleaned variable name (name_clean) and value label (label).

fcds_recoding_file

The path to the recoding specification yaml file. Set to NULL to use the default recoding as used in fcds_import().

Value

A character vector of valid FCDS values, or a tibble with information about the original and recoded FCDS data values.

Examples

1
2
3
4
5
6
7
fcds_const("race")

fcds_const("race", full = TRUE)

fcds_const("cancer_site_group", full = TRUE) %>% head()

fcds_const("moffitt_catchment")

GerkeLab/fcds documentation built on July 30, 2020, 7:04 p.m.