Description Usage Arguments Value Examples
Convert a column in a data.table containing nuanced, specific races into the aggregated set: white, black, hispanic, other that is more commonly found in US medical literature.
1 | group_race(data, race_col = "race", inplace = FALSE)
|
data |
a data.table with the column containing races (data.table) |
race_col |
a string specifying the name of column containing race info, "race" by default (character) |
inplace |
if TRUE old race column is replaced with aggregated race infor, if FALSE (default), a new column called "race_group" is added (logical) |
data.table with the a new race_group column containing aggregated race / old column replaced with this column if inplace = TRUE (data.table)
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.