get_gender: Determine the gender of a first name

Description Usage Arguments Value Examples

View source: R/get_gender.R

Description

Determine the gender of a first name

Usage

1
2
get_gender(name = "Sebastian", apikey = NULL, country_id = NULL,
  simple_response = FALSE)

Arguments

name

The first name you want the gender for (can also take a vector of names - max 10)

country_id

The ISO 3166-1 alpha-2 code for the country (see gendeR::df_iso for ISO 3166-1 alpha-2 codes)

simple_response

If TRUE, you only get the gender. If FALSE, you also get the probability of correct gender and a count of names in Genderize.io's database

Value

A dataframe if simple_response = FALSE, a character if simple_response = TRUE

Examples

1
get_gender(name = "Sebastian", country_id = "DK", simple_response = TRUE)

Steensson/gendeR documentation built on May 7, 2019, 1:23 p.m.