View source: R/assign_race_labels.R
assign_race_labels | R Documentation |
Convert the race labels from a data source to Racine race labels
assign_race_labels(
.x,
mapping,
...,
target_name = "Race/Ethnicity",
.levels = hiRx::RACE_LABELS_RACINE
)
.x |
a data frame with a column of race labels |
mapping |
a data frame that relates the source's labels to Racine's |
... |
values for the 'by' argument of an 'inner_join' between '.x' and 'mapping' |
target_name |
optional, defaults to "Race/Ethnicity". |
.levels |
optional, the new levels for the Race/Ethnicity factor. |
a new data frame with a factor, 'Race/Ethnicity', of Racine races.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.