Reads the SEER column specification from the SAS import file.

seer_read_col_positions(file = "https://seer.cancer.gov/manuals/read.seer.research.nov2017.sas",
  raw = FALSE, use_col_desc = FALSE)

Arguments

file

Path to read.seer.research.sas file.

use_col_desc

Should the column description be used for the column names? If FALSE (default), column descriptions are added as variable labels using labelled::var_label().

Examples

seer_col_pos <- seer_read_col_positions() head(seer_col_pos)
#> # A tibble: 6 x 4 #> begin end col_names col_labels #> <dbl> <dbl> <chr> <chr> #> 1 0 8 PUBCSNUM Patient ID #> 2 8 18 REG SEER registry #> 3 18 19 MAR_STAT Marital status at diagnosis #> 4 19 21 RACE1V Race/ethnicity #> 5 22 23 NHIADE NHIA Derived Hisp Origin #> 6 23 24 SEX Sex