generator: Generate Data Containing Fake Personally Identifiable Information

模擬の個人情報データを生成する

> library(generator)

バージョン: 0.1.0


関数名 概略
generator generator: Generate Data Containing Fake Personally Identifiable Information
r_credit_card_numbers Generate random fake credit card numbers.
r_date_of_births Generate random fake date of birth values.
r_email_addresses Generate random fake e-mail addresses.
r_full_names Generate random fake full names.
r_ipv4_addresses Generate random fake IPv4 address numbers.
r_latitudes Generate random fake latitude values.
r_longitudes Generate random fake longitude values.
r_national_identification_numbers Generate random fake national identification numbers.
r_phone_numbers Generate random fake phone numbers.

r_credit_card_numbers

ダミーのクレジットカード番号を生成する

> r_credit_card_numbers(10)
 [1] "8347-5602-7859-4283" "6601-5617-6450-8424" "8282-3296-2574-5211"
 [4] "5604-2609-5215-6110" "2902-3818-8533-9826" "9065-8177-4033-4726"
 [7] "4270-5841-4534-7304" "7689-6687-5250-1446" "5792-1809-1754-8163"
[10] "3767-8244-7749-5451"

r_date_of_births

ダミーの誕生日日付を生成する

> r_date_of_births(n     = 4,
+                  start = as.Date("2000-01-01"),
+                  end   = Sys.Date())
[1] "2009-06-23" "2007-04-08" "2008-03-01" "2014-05-05"

r_full_names

ダミーの名前ベクトルを生成する

> r_full_names(10)
 [1] "Merrill Kohler"    "Arminda Harber"    "Denese Rempel"    
 [4] "Donnell Roberts"   "Margaretta Veum"   "Winford Boyer"    
 [7] "Isadora Bashirian" "Xavier Little"     "Carletta Ziemann" 
[10] "Dion Balistreri"

r_latitudes

ダミーの緯度データを生成する

ref) r_longitudes

> r_latitudes(10)
 [1] -65.770997  46.428977 -28.319572   8.463449  16.295000  88.363184
 [7] -80.713335  -4.568885 -47.773656  28.102765

r_longitudes

> r_longitudes(10)
 [1]  117.185399 -158.478408  144.031679 -135.728367  -68.006191
 [6]    6.880466 -100.068055  -75.044635 -150.106037 -138.550819

r_national_identification_numbers

> r_national_identification_numbers(5)
[1] "575-67-3704" "643-93-6269" "872-43-7577" "381-84-6307" "831-83-8157"