powered by
Function that returns the description of the consulted ethnicities
describe_ethnicity(ethnic_codes, language = c("EN", "ES"))
A printed message with ethnicities descriptions
A numeric vector with the codes of ethnicities to consult
"ES" for description in Spanish "EN" for English. The default value is EN
describe_ethnicity(round(runif(n = 150, min = 1, max = 4)))
Run the code above in your browser using DataLab