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()
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)
ch_generate()
ch_generate("job", "phone_number", n = 30)
ch_job()
ch_job(10)
ch_credit_card_provider() ch_credit_card_provider(n = 4)
ch_credit_card_number(n = 10)
ch_credit_card_security_code() ch_credit_card_security_code(10)
All providers have documentation available through the help functions.
All providers of the same locales, are linked together, and for every language
we have a generic page, for example?`dutch-language`
.
There are three vignettes, about contributing to this project, what {charlatan} does and a more in depth vignette about creating realistic data.
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.