Predict the race of a surname"

  collapse = TRUE,
  comment = "#>"


The only required parameter is name which is the surname you want to find the race of. Please note that this parameter only accepts surnames, including both first and last name will result in not finding a match in the Census data.


This function accepts a single string or a vector of strings.

predict_race(c("Washington", "Franklin", "Lincoln"))

If you only want the most likely race and not the individual probabilities of each race, set the parameter probability to FALSE.

predict_race("Washington", probability = FALSE)

Try the predictrace package in your browser

Any scripts or data that you put into this service are public.

predictrace documentation built on May 22, 2019, 9:03 a.m.