knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of name2sex is to convert a vector of first names into sex estimates (female percent) based on historical data bases.
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!
You can install the development version from GitHub with:
# install.packages("devtools") devtools::install_github("mkearney/name2sex")
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.