genderName: Gender of Name API

Description Usage Arguments Value Examples

View source: R/hello.R

Description

Gender of Name API

Usage

1
genderName(first_names)

Arguments

first_names

The name that you want to know the gender of. Please only use the first name without any spaces.

Value

A dataframe with one row for every name and 3 columns. The columns tell the inputted name, the gender, and the probability that the gender is accurate.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
genderName("Tom")
genderName("Mary")
genderName("Sasha")

# example of no gender found for the name
genderName("")

genderName(c("Tom", "Mary", "Sasha"))

# It can take a list an input, even a list with bad values (such as "")
example <- c("Tom", "Mary", "",  "Sasha")
genderName(example)

example <- data.frame(name = c("Tom", "Mary", "Sasha"))
genderName(example$name)

jacobkap/genderNames documentation built on May 18, 2019, 9:05 a.m.