GithubHelp home page GithubHelp logo

sandy4321 / chancer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from martineastwood/chancer

0.0 2.0 0.0 176 KB

Chancer is an R package for generating of random strings, numbers, addresses etc in the spirit of chances.js

R 100.00%

chancer's Introduction

Chancer - Creating Random Data in R

Chancer is an R package for generating of random strings, numbers, addresses etc to help write automated tests or create anything random you need. Chancer was inspired by the javascript library chance.js.

Installation

Chancer is not currently on CRAN as it's still in early development but in the meantime it can be installed in R using devtools

install_github("martineastwood/chancer")

Examples

Take a look at the documentation to see all the functions, but there are a few brief examples below to give you an idea about chancer:

chancer.word: Returns a random semi-pronounceable word with control over number of syllables etc.

chancer.sentence: Returns a random sentence constructed from semi-pronounceable made up words.

chancer.paragraph: Returns a random paragraph constructed from semi-pronounceable made up sentances.

chancer.address: Returns a random address constructed from semi-pronounceable made up words.

chancer.name: Returns a random name, with control over gender, prefixs such as Doctor etc.

chancer.birthday: Returns a random birthday, with contol of overgroups e.g child, adult etc.

chancer.colour: Returns a random rgb / hex / greyscale colour.

chancer.domain: Returns a random semi-pronounceable domain name.

chancer.email: Returns a random semi-pronounceable email address.

chancer.ip: Returns a random ip address.

chancer.ssn: Returns a random US social security number.

chancer.guid: Returns a random guid.

chancer.geohash: Returns a random geohash.

chancer.coordinates: Returns random coordinates.

chancer.city: Returns a random made up city.

chancer.areacode: Returns a random area code.

There are lots of other functions already included in the package, with more to follow!

chancer's People

Contributors

martineastwood avatar

Watchers

James Cloos avatar  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.