View source: R/categorize_hspanicr.R
categorize_hspanicr | R Documentation |
The hspanicr column was not introduced until 1987 and not all years have all possible Hispanic options. This creates a categorical variable so functions like tidyr::complete() will expand rows that have no observations.
categorize_hspanicr(hspanicr_column)
hspanicr_column |
hspanicr column from MCOD dataframe |
factor
categorize_hspanicr(c(1:5, NA, 9, 8, 4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.