Base transport

fake_sondage_people(n, seed = 2811, local = c("fr_FR"))

Arguments

n

number of clients

seed

random seed

local

the local of the base. Currently supported : "fr_FR" and "en_US".

Details

  • id_individu Unique identification of people with "ID-AAAA-1111" pattern

  • sexe. sex. c("F" = "Female", "M" = "Male", "O" = "Other"). Some are missing

  • age age. Some are missing

  • region. some regions have NA values that may be fill with left_join with fra_sf dataset. Some regions are more represented than others

  • id_departement. number identifying French department

  • nom_departement. Name of the department. Some departement have NA values that may be fill using id_departement.

  • question_date. Date/hour when questionnaire has been answered.

  • year. year extracted from question_date

Examples

fake_sondage_people(10)
#> # A tibble: 10 × 8
#>    id_individu   age sexe  region                 id_departement nom_departement
#>    <chr>       <int> <chr> <chr>                  <chr>          <chr>          
#>  1 ID-NYDZ-010    NA NA    Midi-Pyrénées          09             NA             
#>  2 ID-PWLB-009    71 F     Midi-Pyrénées          65             Hautes-Pyrénées
#>  3 ID-NMQG-001    42 M     Auvergne               63             Puy-de-Dôme    
#>  4 ID-RJXN-002    71 O     Pays de la Loire       53             Mayenne        
#>  5 ID-MROK-007    41 M     Midi-Pyrénées          81             Tarn           
#>  6 ID-VMKS-004    33 O     Rhône-Alpes            69             Rhône          
#>  7 ID-XEMZ-003    81 O     Champagne-Ardenne      51             Marne          
#>  8 ID-EUDQ-005    44 M     Lorraine               55             Meuse          
#>  9 ID-DCIZ-008    92 O     Provence-Alpes-Côte d… 84             Vaucluse       
#> 10 ID-KPUS-006    57 O     NA                     13             Bouches-du-Rhô…
#> # … with 2 more variables: question_date <dttm>, year <dbl>