⚤ Get sex (female percent) estimates based on first names
Switch branches/tags
Nothing to show
Clone or download
Latest commit 035a219 Aug 4, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R save sexdat as sysdat to allow fully qualified reference use of names… May 16, 2018
data initial commit May 9, 2018
man update docs Aug 4, 2018
.Rbuildignore create README May 9, 2018
.gitignore Initial commit May 9, 2018
DESCRIPTION update docs Aug 4, 2018
LICENSE initial commit May 9, 2018
LICENSE.md initial commit May 9, 2018
NAMESPACE initial commit May 9, 2018
README.Rmd update docs Aug 4, 2018
README.md update docs Aug 4, 2018
all-data.R initial commit May 9, 2018
make.R add names to output May 9, 2018
name2sex.Rproj Initial commit May 9, 2018
tw-data.R initial commit May 9, 2018

README.md

⚤ name2sex

lifecycle

The goal of name2sex is to convert a vector of first names into sex estimates (female percent) based on historical data bases.

NOTE

If you’re reading this, I’d encourage you to check out https://github.com/ropensci/gender instead. In making this package, we made some decisions that are probably not completely obvious. So it’d be more transparent [and probably all-around better] to use the https://github.com/ropensci/genderdata and https://github.com/ropensci/gender packages directly!

Installation

You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("mkearney/name2sex")

Example

This is a basic example:

## load package
library(name2sex)

## vector of first names
first_names <- c("casi", "mike", "tracy", "rory", "pat", "alex", "tamar")

## apply names2sex function to first names
names2sex(first_names)
#>       casi       mike      tracy       rory        pat       alex 
#> 1.00000000 0.00313833 0.80361373 0.16616643 0.58198674 0.02903625 
#>      tamar 
#> 0.86616352