powered by
Function that returns the description of the consulted ethnicities
describe_ethnicity(ethnic_codes)
A printed message with ethnicities descriptions
A numeric vector with the codes of ethnicities to consult
describe_ethnicity(round(runif(n = 150, min = 1, max = 4)))
Run the code above in your browser using DataLab