README.md

gendeR package

Installation

devtools::install_github("Steensson/gendeR")

get_gender

Get the gender my specifying a forname

gendeR::get_gender(name = "Sebastian")
#>        name gender probability count
#> 1 Sebastian   male           1  1459

get_gender - restrict to country

Get the gender my specifying a forname and a ISO 3166-1 alpha-2 country code

gendeR::get_gender(name = "Sebastian", country_id = "DK")
#>        name gender probability count
#> 1 Sebastian   male           1    13

How to find the ISO 3166-1 alpha-2 country codes?

Google it or use the df_iso from the package

head(gendeR::df_iso)
#>   country_id         country_name
#> 1         AD              Andorra
#> 2         AE United Arab Emirates
#> 3         AF          Afghanistan
#> 4         AG  Antigua and Barbuda
#> 5         AI             Anguilla
#> 6         AL              Albania

gendeR



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