Giter VIP home page Giter VIP logo

name2sex's Introduction

⚤ 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

name2sex's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

name2sex's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.