There are a number of variables that cover site-specific factors. This function renames those variables according the their labels. The resulting names are long but descriptive.

seer_rename_site_specific(.data,
  name_formatter = snakecase::to_snake_case)

Arguments

.data

The SEER data set, from read_seer_fwf() with use_col_desc = FALSE.

name_formatter

A function that takes will be applied to the site-specific factor descriptions to convert into valid variable names. See snakecase::to_snake_case().