knitr::opts_chunk$set( comment = "#>", collapse = TRUE, warning = FALSE, message = FALSE )
charlatan
makes fake data, inspired from and borrowing some code from Python's faker (https://github.com/joke2k/faker)
Make fake data for:
Possible use cases for charlatan
:
Reasons to use charlatan
:
cran version
install.packages("charlatan")
dev version
remotes::install_github("ropensci/charlatan")
library("charlatan") set.seed(12345)
... for all fake data operations
x <- fraudster() x$job() x$name() x$color_name()
Adding more locales through time, e.g.,
Locale support for job data
ch_job(locale = "en_US", n = 3) ch_job(locale = "fr_FR", n = 3) ch_job(locale = "hr_HR", n = 3) ch_job(locale = "uk_UA", n = 3) ch_job(locale = "zh_TW", n = 3)
For colors:
ch_color_name(locale = "en_US", n = 3) ch_color_name(locale = "uk_UA", n = 3)
More coming soon ...
ch_generate()
ch_generate("job", "phone_number", n = 30)
ch_name()
ch_name(10)
ch_phone_number()
ch_phone_number(10)
ch_job()
ch_job(10)
ch_credit_card_provider() ch_credit_card_provider(n = 4)
ch_credit_card_number() ch_credit_card_number(n = 10)
ch_credit_card_security_code() ch_credit_card_security_code(10)
If you would like to contribute, see CONTRIBUTING (on github)
charlatan
in R doing citation(package = 'charlatan')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.