Title: | Generate Fake Datasets for Prototyping and Teaching |
---|---|
Description: | Create fake datasets that can be used for prototyping and teaching. This package provides a set of functions to generate fake data for a variety of data types, such as dates, addresses, and names. It can be used for prototyping (notably in 'shiny') or as a tool to teach data manipulation and data visualization. |
Authors: | Colin Fay [aut, cre] , Sebastien Rochette [aut] , ThinkR [cph] |
Maintainer: | Colin Fay <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.1.0 |
Built: | 2024-11-20 05:21:56 UTC |
Source: | https://github.com/ThinkR-open/fakir |
A fake base of customer support tickets
fake_base_clients(n, local = c("en_US", "fr_FR"), seed = 2811)
fake_base_clients(n, local = c("en_US", "fr_FR"), seed = 2811)
n |
the number of clients |
local |
the local of the base. Currently supported : "fr_FR" and "en_US". |
seed |
the random seed, default is 2811 |
A dataframe of fake clients.
fake_base_clients(n = 10) fake_base_clients(n = 10, local = "fr_FR")
fake_base_clients(n = 10) fake_base_clients(n = 10, local = "fr_FR")
Fake base of products
fake_products(n, seed = 2811)
fake_products(n, seed = 2811)
n |
Number of Products to generate |
seed |
the random seed, default is 2811 |
a dataframe
A dataframe of fake products.
fake_products(10)
fake_products(10)
Une fausse base client de ticket Telecom
fake_ticket_client( vol, x, n = 200, split = FALSE, seed = 2811, local = c("en_US", "fr_FR") )
fake_ticket_client( vol, x, n = 200, split = FALSE, seed = 2811, local = c("en_US", "fr_FR") )
vol |
le nombre de tickets a retourner |
x |
Optionnal. fake client data base |
n |
Number of clients in the client database if x not provided |
split |
la base doit elle ĂȘtre separee en deux ? |
seed |
fixe la graine aleatoire |
local |
the local of the base. Currently supported : "fr_FR" and "en_US". |
Same client can have multiple tickets
Some clients are more sampled than others
Some types are more sampled than others
Some etat are more sampled than others
A dataframe of fake tickets.
x <- fake_ticket_client(1000, split = TRUE) plot(x$clients$entry_date, x$clients$fidelity_points) barplot(table(x$tickets$type)) barplot(table(x$tickets$state))
x <- fake_ticket_client(1000, split = TRUE) plot(x$clients$entry_date, x$clients$fidelity_points) barplot(table(x$tickets$type)) barplot(table(x$tickets$state))
Fake user feedbacks
fake_user_feedback( n, seed = 2811, from = "2012-01-01 00:00:01", to = "2020-01-01 00:00:01" )
fake_user_feedback( n, seed = 2811, from = "2012-01-01 00:00:01", to = "2020-01-01 00:00:01" )
n |
Number of feedbacks to generate |
seed |
the random seed, default is 2811 |
from , to
|
the date to cover |
a dataframe
fake_user_feedback(10)
fake_user_feedback(10)
Create a fake support ticket base
fake_visits( from = "2017-01-01", to = "2017-12-31", local = c("en_US", "fr_FR"), seed = 2811 )
fake_visits( from = "2017-01-01", to = "2017-12-31", local = c("en_US", "fr_FR"), seed = 2811 )
from , to
|
the date to cover |
local |
the local of the base. Currently supported : "fr_FR" and "en_US". |
seed |
fixe la graine aleatoire |
A dataframe of fake web visits.
fake_visits()
fake_visits()
A map of France as sf object. Can be used as dataset or for maps
fra_sf
fra_sf
A data frame with 96 rows, 5 variables and a spatial geometry (MULTIPOLYGON):
polygon identifier
country: France
region name
departement name
departement id
polygon geometry