Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Generate data containing fake Personally Identifiable Information (PII) in R

License

NotificationsYou must be signed in to change notification settings

paulhendricks/generator

Repository files navigation

CRAN_Status_BadgeDownloads from the RStudio CRAN mirrorBuild StatusBuild statuscodecov.ioProject Status: Active - The project has reached a stable, usable state and is being actively developed.

generator generates data containing fakePersonally Identifiable Information (PII). Once complete,generator will be able to generate the following types of PII:

  • Full name
  • Home address
  • E-mail address
  • National identification number
  • Passport number
  • IP address
  • Vehicle registration plate number
  • Driver's license number
  • Credit card number
  • Date of birth
  • Birthplace
  • Telephone number
  • Latitude and longtiude

State of the Union

Complete!

  • Full name
  • E-mail address
  • Date of birth
  • Telephone number
  • Latitude and longtiude

Needs more work...

  • National identification number
  • IP address
  • Credit card number

Haven't even started :(

  • Home address
  • Vehicle registration plate number
  • Driver's license number
  • Birthplace

Installation

You can install the latest development version from CRAN:

install.packages("generator")

Or from GitHub with:

if (packageVersion("devtools")<1.6) {  install.packages("devtools")}devtools::install_github("paulhendricks/generator")

If you encounter a clear bug, please file aminimal reproducible example onGitHub.

API

Generate data containing fake PII

library(generator)n<-6set.seed(1)ashley_madison<-data.frame(name= r_full_names(n),snn= r_national_identification_numbers(n),dob= r_date_of_births(n),email= r_email_addresses(n),ip= r_ipv4_addresses(n),phone= r_phone_numbers(n),credit_card= r_credit_card_numbers(n),lat= r_latitudes(n),lon= r_longitudes(n),stringsAsFactors=FALSE)knitr::kable(ashley_madison,format="markdown")
namesnndobemailipphonecredit_cardlatlon
Eldridge Pfannerstill442-34-53381993-04-28ntakqojv@lgbcyk.rkv45.84.71.22567949769584125-7204-9193-5140-2.70185758.634988
Augustine Homenick799-44-63961912-09-08iqg@mtcuh.viy191.116.55.10632758276942182-5994-2283-9486-70.4148630-65.827918
Jennie Runte941-11-54411985-01-12wjszy@sjhreocvt.gbp27.128.73.1774193517354370-4866-4735-7857-45.4091701-79.932229
Araceli Kunde290-44-26751948-04-28uljsnvhfr@qfdkumtn.jkd221.47.229.8632432462856682-5074-2898-9396-0.2673845103.514583
Josue Rau686-88-84461996-06-14c@lqxzkdpi.nfy157.136.114.18591697368734510-3757-4858-5236-22.883992572.886505
Elnora Zemlak212-40-70161976-01-09capvnl@nympzf.gsk143.20.199.8732958431967206-6205-2194-643278.2444466-120.590050

Citation

To cite package ‘generator’ in publications use:

Paul Hendricks (2015). generator: Generate Data Containing Fake Personally Identifiable Information. R package version 0.1.0. https://CRAN.R-project.org/package=generator

A BibTeX entry for LaTeX users is

@Manual{,  title = {generator: Generate Data Containing Fake Personally IdentifiableInformation},  author = {Paul Hendricks},  year = {2015},  note = {R package version 0.1.0},  url = {https://CRAN.R-project.org/package=generator},}

About

Generate data containing fake Personally Identifiable Information (PII) in R

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp