Cleans a member's racial ethnicity.

step_ethnicity(df, detailed_types = FALSE)

Arguments

df

a tibble of demographic data

detailed_types

If ethnicity should be reported by country, or according to the new simplified schema such as Black, Hispanic, White, etc.

Value

a tibble with cleaned column Ethnicity

Examples

#demo_raw <- step_ethnicity(df = demo_raw, detailed_types = FALSE)