GithubHelp home page GithubHelp logo

joshwlambert / randomnames Goto Github PK

View Code? Open in Web Editor NEW

This project forked from centerforassessment/randomnames

0.0 0.0 0.0 1.99 MB

Function to generate random gender and ethnicity correct first and/or last names. Names are chosen proportionally based upon their probability of appearing in a large scale data base of real names.

Home Page: https://centerforassessment.github.io/randomNames

License: Other

R 100.00%

randomnames's Introduction

randomNames

R-CMD-check AppVeyor Build Status CRAN_Status_Badge Development Version Rstudio mirror downloads License https://gitter.im/CenterForAssessment/randomNames

Overview

The randomNames package contains a single function randomNames which creates random gender/ethnicity correct first and/or last names where names are proportionally sampled based upon their frequency in a large scale database.

Installation

From CRAN

To install the latest stable release of randomNames from CRAN

> install.packages("randomNames")

From Github

To install the development release of randomNames from GitHub:

> devtools::install_github("CenterForAssessment/randomNames")

Usage

> randomNames(5) ## 5 last, first names
[1] "Mossberg, Cassie"  "Mendiaz, Victoria" "Miner, Cassidy"    "Austin, Brook"     "Babcock, Lloyd"

> randomNames(5, gender=1) ## 5 female last, first names
[1] "Bruckner, Birva"   "Caringer, Madelyn" "Mendoza, Rebecca"  "el-Haque, Jaleela" "Williams, Miranda"

> randomNames(5, gender=0) ## 5 male last, first names
[1] "al-Salam, Rida"    "Debus, Kai"        "al-Aly, Jaabir"    "Garces, Markus"    "Robertson, Trevor"

> randomNames(5, gender=0, ethnicity=3) ## 5 African American, male last, first names
[1] "Bashir, Shaquille" "Ursery, Keilan"    "Marlow, Marvin"    "Bell, Daishavon"   "Hammond, Kyle"

> randomNames(5, gender=1, ethnicity=6, which.names="first") ## 5 Middle Eastern, female first names
[1] "Jawhara"  "Raaniya"  "Ghaada"   "Ghazaala" "Raabia"

Resources

Contributors

The randomNames Package is crafted with ❤️ by:

I love feedback and am happy to answer questions.

randomnames's People

Contributors

dbetebenner avatar adamvi avatar joshwlambert avatar gitter-badger avatar

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.