https://github.com/mkearney/name2sex
⚤ Get sex (female percent) estimates based on first names
https://github.com/mkearney/name2sex
census-data first-name first-names mkearney-r-package names r-package rstats sex
Last synced: 28 days ago
JSON representation
⚤ Get sex (female percent) estimates based on first names
- Host: GitHub
- URL: https://github.com/mkearney/name2sex
- Owner: mkearney
- License: other
- Created: 2018-05-09T18:20:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-04T14:34:36.000Z (almost 8 years ago)
- Last Synced: 2025-01-15T09:45:12.167Z (over 1 year ago)
- Topics: census-data, first-name, first-names, mkearney-r-package, names, r-package, rstats, sex
- Language: R
- Homepage:
- Size: 2.05 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
output: github_document
---
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# ⚤ name2sex 
[](https://www.tidyverse.org/lifecycle/#experimental)
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](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("mkearney/name2sex")
```
## Example
This is a basic example:
```{r 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)
```