fake_ticket_client: Base ticket client

View source: R/fake_client.R

fake_ticket_clientR Documentation

Base ticket client

Description

Une fausse base client de ticket Telecom

Usage

fake_ticket_client(
  vol,
  x,
  n = 200,
  split = FALSE,
  seed = 2811,
  local = c("en_US", "fr_FR")
)

Arguments

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".

Details

  • 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

Value

A dataframe of fake tickets.

Examples

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))


fakir documentation built on April 14, 2023, 12:34 a.m.