# NOT RUN {
#' # Use get_gender to predict the gender of a person based on her/his first name
get_gender('MARIA DA SILVA SANTOS')
get_gender('joao')
# To change the employed threshold
get_gender('ariel', threshold = 0.8)
# Or to get the proportion of females
# with the name provided
get_gender('iris', prob = TRUE)
# Multiple names can be predict at the same time
get_gender(c('joao', 'ana', 'benedita', 'rafael'))
# }
# NOT RUN {
# In different states (using API data, must have internet connection)
get_gender(rep('Ana', 3), c('sp', 'am', 'rs'))
# }
Run the code above in your browser using DataLab