Generate a fake dataset

ch_generate(..., n = 10, locale = NULL)

Arguments

...

columns to include. must be in the allowed set. See Allowed column names below. Three default columns are included (name, job, phone_number) if nothing is specified - but are overridden by any input.

n

(integer) number of things to get, any non-negative integer

locale

(character) the locale to use. options: only supported for data types that have locale support, See each data provider for details.

Allowed column names

  • name (default included)

  • job (default included)

  • phone_number (default included)

  • currency

  • color_name

  • rgb_color

  • rgb_css_color

Examples

ch_generate()
#> # A tibble: 10 × 3
#>    name                      job                                 phone_number   
#>    <chr>                     <chr>                               <chr>          
#>  1 Tyrik Conroy MD           Exhibitions officer, museum/gallery (945)604-3485  
#>  2 Girtha Wyman              Midwife                             08237477290    
#>  3 Nevada Lockman            Water quality scientist             +96(1)69115057…
#>  4 Audrey Douglas            Theatre stage manager               504-502-9562   
#>  5 Armando Nienow            Museum education officer            729.472.8895x6…
#>  6 Clytie Ortiz              Lawyer                              149.714.5646x4…
#>  7 Yamilet Frami             Engineer, structural                408.480.2350x2…
#>  8 Mr. Thurlow Jakubowski MD Engineer, manufacturing systems     297-329-6461   
#>  9 Sigrid Bartell            Accommodation manager               178-695-8315   
#> 10 Herlinda Terry            Nurse, learning disability          07325300348    
ch_generate(n = 1)
#> # A tibble: 1 × 3
#>   name         job            phone_number     
#>   <chr>        <chr>          <chr>            
#> 1 Ann Nikolaus Police officer (012)074-8104x816
ch_generate(n = 100)
#> # A tibble: 100 × 3
#>    name                   job                                  phone_number     
#>    <chr>                  <chr>                                <chr>            
#>  1 Mr. Lem Bayer I        Designer, multimedia                 (064)647-7383    
#>  2 Dr. Angus Stroman      Research scientist (life sciences)   480.572.7353x435…
#>  3 Ernst Marks-Denesik    Secretary, company                   1-537-230-1039x8…
#>  4 Kimberly McKenzie      Tax inspector                        (035)072-5890x701
#>  5 Britany Abshire        Plant breeder/geneticist             +28(8)4784108877 
#>  6 Maximiliano Hagenes    Orthoptist                           04247591339      
#>  7 Mr. Cassius Altenwerth Adult guidance worker                (599)112-3271    
#>  8 Aloysius Schimmel      Counselling psychologist             735-673-5441x099…
#>  9 Kelan King-Gibson      Lighting technician, broadcasting/f… 927.567.6474     
#> 10 Ms. Felecia Pouros     Radiographer, diagnostic             05794203704      
#> # … with 90 more rows

ch_generate('job')
#> # A tibble: 10 × 1
#>    job                                         
#>    <chr>                                       
#>  1 Bookseller                                  
#>  2 Pathologist                                 
#>  3 Public house manager                        
#>  4 Media planner                               
#>  5 Designer, exhibition/display                
#>  6 Lighting technician, broadcasting/film/video
#>  7 Retail manager                              
#>  8 Warehouse manager                           
#>  9 Patent examiner                             
#> 10 Insurance risk surveyor                     
ch_generate('job', 'name')
#> # A tibble: 10 × 2
#>    job                                name                    
#>    <chr>                              <chr>                   
#>  1 Personnel officer                  Wirt Will               
#>  2 Research scientist (life sciences) Jade Jones              
#>  3 Psychotherapist                    Mr. Darryle Murray      
#>  4 Environmental health practitioner  Mr. Belton Hessel III   
#>  5 Bookseller                         Laverne Durgan          
#>  6 Purchasing manager                 Miss Shirleen Botsford  
#>  7 Doctor, hospital                   Maymie Gulgowski-White  
#>  8 Private music teacher              Era Schultz-Bode        
#>  9 Occupational therapist             Mr. Ryland Quigley      
#> 10 Music therapist                    Miss Leonore Hilpert PhD
ch_generate('job', 'color_name')
#> # A tibble: 10 × 2
#>    job                        color_name     
#>    <chr>                      <chr>          
#>  1 Advertising art director   Beige          
#>  2 Designer, ceramics/pottery Gainsboro      
#>  3 Geoscientist               Snow           
#>  4 Neurosurgeon               LightPink      
#>  5 Building control surveyor  DarkCyan       
#>  6 Mining engineer            MediumTurquoise
#>  7 Arts administrator         PeachPuff      
#>  8 Programmer, multimedia     Silver         
#>  9 Land/geomatics surveyor    IndianRed      
#> 10 Structural engineer        FireBrick      

# locale
ch_generate(locale = "en_US")
#> # A tibble: 10 × 3
#>    name                job                          phone_number       
#>    <chr>               <chr>                        <chr>              
#>  1 Devyn Schaden I     Technical brewer             441.142.7176       
#>  2 Ms. Matilda Okuneva Radio producer               00161257393        
#>  3 Jasmyne Daniel      Fast food restaurant manager (792)102-2265      
#>  4 Milagros Rempel     Producer, radio              550.784.1665       
#>  5 Mayo Mante          Risk analyst                 (860)516-2869x18595
#>  6 Dr. Eugene Haley    Contracting civil engineer   1-664-408-4728     
#>  7 Jenni Rosenbaum     Software engineer            1-051-788-9655     
#>  8 Ceylon Von          Stage manager                594.967.3610x7042  
#>  9 Jens Jenkins        Research scientist (medical) +19(9)4534304970   
#> 10 Cole Bruen          Dancer                       (344)552-5270x0969 
ch_generate(locale = "fr_FR")
#> # A tibble: 10 × 3
#>    name                job                                 phone_number        
#>    <chr>               <chr>                               <chr>               
#>  1 René Cohen          Conseiller en séjours               06 97 81 90 34      
#>  2 Dominique Descamps  Auteur interprète                   0104756063          
#>  3 Benjamin Tessier    Formulateur                         +33 (0)1 69 55 35 53
#>  4 Catherine L'Gimenez Responsable des ressources humaines 01 14 26 86 47      
#>  5 Noémi Besson        Moniteur                            05 20 14 84 60      
#>  6 Sébastien Germain   Architecte naval                    +33 1 50 75 42 21   
#>  7 Rémy Chauveau       Accessoiriste                       03 12 75 63 42      
#>  8 Manon Hernandez     Graphiste                           +33 (0)2 28 35 68 37
#>  9 Christine Adam      Cuisinier                           +33 (0)1 26 23 11 89
#> 10 Roger Allain        Pédicure-podologue                  +33 8 76 81 35 26   
ch_generate(locale = "fr_CH")
#> # A tibble: 10 × 3
#>    name                     job                                    phone_number 
#>    <chr>                    <chr>                                  <chr>        
#>  1 Elodie Joly              Chef de vente diplômé                  0906 003 402 
#>  2 Albert Galland           Informaticien CFC                      0906 196 309 
#>  3 Marcelle Grosjean        Spécialiste en organisation d'entrepr… +41 81 601 3…
#>  4 Albert Bugnon-Crevoisier Charron                                +41 96 224 4…
#>  5 Matteo Bouvier           Dermapigmentologue avec brevet fédéral +41 22 517 6…
#>  6 Louis Courvoisier        Constructeur de voies ferrées CFC (ch… 0878 122 050 
#>  7 Maurice Paccot           Sculpteur sur pierre, maître           +41 78 434 0…
#>  8 Luca Cretton             Gardien de chevaux AFP                 0901 954 861 
#>  9 Chloé Joye               Economiste d'entreprise PME avec dipl… +41 49 923 7…
#> 10 Christophe Sansonnens    Technicien vitivinicole dipl. ES       +41 95 977 3…