gender_unique: Predict gender from first name

Description Usage Arguments Value See Also Examples

View source: R/gender.R

Description

This function predicts the gender of a first name.

Usage

1
2
gender_unique(first_name, year_min = 1900, year_max = 2017,
  freq = FALSE)

Arguments

first_name

first name as a character string.

year_min

starting year of the period over which the prediction is computed.

year_max

ending year of the period over which the prediction is computed.

freq

return the probability of the first name being male

Value

The predicted gender based on the proportions of males and females with the input first name. Possible values are either "male" or "female". NA is returned when the input first name is unknown in the database. If freq is set to TRUE, the function returns the probability of the first name being male.

See Also

gender, is_male, is_female

Examples

1
2
gender_unique("Baptiste")
gender_unique("Henriette")

pmerckle/firstnamer documentation built on May 3, 2019, 3:21 p.m.