{"id":13665835,"url":"https://github.com/ropensci/charlatan","last_synced_at":"2026-01-16T17:46:02.369Z","repository":{"id":53913304,"uuid":"77184078","full_name":"ropensci/charlatan","owner":"ropensci","description":"Create fake data in R","archived":false,"fork":false,"pushed_at":"2025-02-04T14:22:55.000Z","size":1032,"stargazers_count":302,"open_issues_count":29,"forks_count":28,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-26T03:35:28.162Z","etag":null,"topics":["data","dataset","fake-data","faker","peer-reviewed","r","r-package","rstats"],"latest_commit_sha":null,"homepage":"https://docs.ropensci.org/charlatan/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ropensci.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":"codemeta.json","zenodo":null}},"created_at":"2016-12-23T00:00:18.000Z","updated_at":"2025-04-07T10:07:58.000Z","dependencies_parsed_at":"2023-09-21T19:22:51.806Z","dependency_job_id":"ef1d62b5-5ad5-47e3-ba41-a92007cc1286","html_url":"https://github.com/ropensci/charlatan","commit_stats":{"total_commits":262,"total_committers":18,"mean_commits":"14.555555555555555","dds":"0.23664122137404575","last_synced_commit":"5ed2ed59fa83b28f44370e634932e82e38ea4b3a"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fcharlatan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fcharlatan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fcharlatan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Fcharlatan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci","download_url":"https://codeload.github.com/ropensci/charlatan/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250961033,"owners_count":21514564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data","dataset","fake-data","faker","peer-reviewed","r","r-package","rstats"],"created_at":"2024-08-02T06:00:51.634Z","updated_at":"2025-10-22T06:17:10.274Z","avatar_url":"https://github.com/ropensci.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"charlatan\n=========\n\n```{r echo=FALSE}\nknitr::opts_chunk$set(\n  comment = \"#\u003e\",\n  collapse = TRUE,\n  warning = FALSE,\n  message = FALSE\n)\n```\n\u003c!-- badges: start --\u003e\n[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)\n[![R-check](https://github.com/ropensci/charlatan/workflows/R-check/badge.svg)](https://github.com/ropensci/charlatan/actions?query=workflow%3AR-check)\n[![cran checks](https://badges.cranchecks.info/worst/charlatan.svg)](https://cloud.r-project.org/web/checks/check_results_charlatan.html)\n[![cran status](https://www.r-pkg.org/badges/version/charlatan)](https://cran.r-project.org/package=charlatan)\n[![rstudio mirror downloads](https://cranlogs.r-pkg.org/badges/charlatan)](https://github.com/r-hub/cranlogs.app)\n[![](https://badges.ropensci.org/94_status.svg)](https://github.com/ropensci/software-review/issues/94)\n[![R-CMD-check](https://github.com/ropensci/charlatan/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ropensci/charlatan/actions/workflows/R-CMD-check.yaml)\n\u003c!-- badges: end --\u003e\n\n\n`charlatan` makes fake data, inspired from and borrowing some code from Python's faker (https://github.com/joke2k/faker)\n\nMake fake data for:\n\n* person names\n* jobs\n* phone numbers\n* colors: names, hex, rgb\n* credit cards\n* DOIs\n* numbers in range and from distributions\n* gene sequences\n* geographic coordinates\n* emails\n* URIs, URLs, and their parts\n* IP addresses\n* more coming ...\n\nPossible use cases for `charlatan`:\n\n* Students in a classroom setting learning any task that needs a dataset.\n* People doing simulations/modeling that need some fake data\n* Generate fake dataset of users for a database before actual users exist\n* Complete missing spots in a dataset\n* Generate fake data to replace sensitive real data with before public release\n* Create a random set of colors for visualization\n* Generate random coordinates for a map\n* Get a set of randomly generated DOIs (Digital Object Identifiers) to\nassign to fake scholarly artifacts\n* Generate fake taxonomic names for a biological dataset\n* Get a set of fake sequences to use to test code/software that uses\nsequence data\n\nReasons to use `charlatan`:\n\n* Light weight, few dependencies\n* Relatively comprehensive types of data, and more being added\n* Comprehensive set of languages supported, more being added\n* Useful R features such as creating entire fake data.frame's\n\n## Installation\n\ncran version\n\n```{r eval=FALSE}\ninstall.packages(\"charlatan\")\n```\n\ndev version\n\n```{r eval=FALSE}\nremotes::install_github(\"ropensci/charlatan\")\n```\n\n```{r}\nlibrary(\"charlatan\")\nset.seed(12345)\n```\n\n## high level function\n\n... for all fake data operations\n\n```{r}\nx \u003c- fraudster()\nx$job()\nx$name()\nx$color_name()\n```\n\n## locale support\n\n```{r}\nch_job(locale = \"fr_FR\", n = 3)\nch_job(locale = \"hr_HR\", n = 3)\nch_job(locale = \"uk_UA\", n = 3)\nch_job(locale = \"zh_TW\", n = 3)\n```\n\n## generate a dataset\n\n```{r}\nch_generate()\n```\n\n```{r}\nch_generate(\"job\", \"phone_number\", n = 30)\n```\n\n## job\n\n```{r}\nch_job()\n```\n\n```{r}\nch_job(10)\n```\n\n## credit cards\n\n```{r}\nch_credit_card_provider()\nch_credit_card_provider(n = 4)\n```\n\n```{r}\nch_credit_card_number(n = 10)\n```\n\n```{r}\nch_credit_card_security_code()\nch_credit_card_security_code(10)\n```\n\n## Documentation\n\nAll providers have documentation available through the help functions.\nAll providers of the same locales, are linked together, and for every language\nwe have a generic page, for example```?`dutch-language` ```.\n\nThere are three vignettes, about contributing to this project, what {charlatan}\ndoes and a more in depth vignette about creating realistic data.\n\n## Usage in the wild\n\n- eacton/R-Utility-Belt-ggplot2 (https://github.com/eacton/R-Utility-Belt-ggplot2/blob/836a6bd303fbfde4a334d351e0d1c63f71c4ec68/furry_dataset.R)\n\n\n## Contributors\n* Roel M. Hogervorst (https://github.com/rmhogervorst)\n* Scott Chamberlain (https://github.com/sckott)\n* Kyle Voytovich (https://github.com/kylevoyto)\n* Martin Pedersen (https://github.com/MartinMSPedersen)\n\nIf you would like to contribute, see [CONTRIBUTING (on github)](.github/CONTRIBUTING.md)\n\n## similar art\n\n* wakefield (https://github.com/trinker/wakefield)\n* ids (https://github.com/richfitz/ids)\n* rcorpora (https://github.com/gaborcsardi/rcorpora)\n* synthpop (https://cran.r-project.org/package=synthpop)\n\n## Meta\n\n* Please [report any issues or bugs](https://github.com/ropensci/charlatan/issues).\n* License: MIT\n* Get citation information for `charlatan` in R doing `citation(package = 'charlatan')`\n* Please note that this package is released with a [Contributor Code of Conduct](https://ropensci.org/code-of-conduct/). By contributing to this project, you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fropensci%2Fcharlatan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fropensci%2Fcharlatan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fropensci%2Fcharlatan/lists"}