Generate a fake dataset
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 Ms. Myrtle Rice Secondary school teacher 755-578-9291
#> 2 Kiersten Yost Industrial/product designer 595-412-6955
#> 3 Karol Gleichner MD Volunteer coordinator 1-881-400-4568
#> 4 Kelsey Orn Geneticist, molecular (454)122-4258
#> 5 Ms. Torrie Heller PhD Advertising account executive (938)290-9985x6…
#> 6 Mrs. Symone Heaney PhD Surveyor, mining (135)470-6108x9…
#> 7 Miss Monique Brown PhD Development worker, international aid 882.025.8257x68…
#> 8 Miss Elvera Leffler Fish farm manager 867.958.8583
#> 9 Rachelle Schowalter Financial controller 1-618-388-0736x…
#> 10 Bette O'Keefe Librarian, academic 900-850-2110
ch_generate(n = 1)
#> # A tibble: 1 × 3
#> name job phone_number
#> <chr> <chr> <chr>
#> 1 Miss Classie Hoppe Politician's assistant 981-690-4793
ch_generate(n = 100)
#> # A tibble: 100 × 3
#> name job phone_number
#> <chr> <chr> <chr>
#> 1 Lesli Hills Special effects artist 02633678362
#> 2 Dr. Zara Lowe Civil engineer, contracting 423-299-9238x70906
#> 3 Nikolai Ward DDS Systems developer 05683640545
#> 4 Sandi Gaylord MD Engineer, energy 039-550-1235x8316
#> 5 Lempi Haag Designer, exhibition/display 392-620-4810
#> 6 Mrs. Danette Nienow Equality and diversity officer 041-774-7165
#> 7 Alwina Terry Actor (339)923-5061x4176
#> 8 Kyan Adams Landscape architect (642)358-4127x884
#> 9 Francis Kohler Call centre manager 748.107.0518x1243
#> 10 Roxie Ledner Environmental manager (139)665-3055
#> # ℹ 90 more rows
ch_generate("job")
#> # A tibble: 10 × 1
#> job
#> <chr>
#> 1 Fine artist
#> 2 Mining engineer
#> 3 Geologist, wellsite
#> 4 Ceramics designer
#> 5 Programmer, applications
#> 6 Therapist, music
#> 7 Oncologist
#> 8 Financial risk analyst
#> 9 Furniture designer
#> 10 Geologist, engineering
ch_generate("job", "name")
#> # A tibble: 10 × 2
#> job name
#> <chr> <chr>
#> 1 Cabin crew Magdalen Treutel-Cormier
#> 2 Technical author Keyon Wuckert
#> 3 Doctor, hospital Ms. Daja Gutmann
#> 4 Sales executive Hortense Lueilwitz
#> 5 Librarian, public Bradly Kreiger
#> 6 Armed forces training and education officer Edmond Hudson
#> 7 Animal nutritionist Kenya Weissnat
#> 8 Animal nutritionist Donell Schroeder
#> 9 Programme researcher, broadcasting/film/video Carmen Weimann
#> 10 Clinical cytogeneticist Mrs. Linna Shields
ch_generate("job", "color_name")
#> # A tibble: 10 × 2
#> job color_name
#> <chr> <chr>
#> 1 Print production planner LightPink
#> 2 Theme park manager Tomato
#> 3 Scientist, research (life sciences) Gold
#> 4 Aid worker LawnGreen
#> 5 Engineer, land DarkMagenta
#> 6 Health physicist DarkGoldenRod
#> 7 Toxicologist DeepSkyBlue
#> 8 Chemist, analytical CornflowerBlue
#> 9 Scientist, product/process development OrangeRed
#> 10 Conservator, furniture DarkMagenta
# locale
ch_generate(locale = "en_US")
#> # A tibble: 10 × 3
#> name job phone_number
#> <chr> <chr> <chr>
#> 1 Irving Halvorson Office manager 572.223.7511
#> 2 Quinten Hartmann II Publishing rights manager 063-660-4233x213
#> 3 Edmond Schultz PhD Proofreader 904.307.8487x476
#> 4 Denice Prohaska PhD Education administrator 532-087-4187x61392
#> 5 Milford Davis Physiotherapist 111-909-9305x951
#> 6 Elige Fahey Research officer, political party 374-739-2239x485
#> 7 Venie Blick PhD Oceanographer 756-558-0039
#> 8 Luna Cormier Rural practice surveyor (220)418-9646x7476
#> 9 Denton Hoppe-Russel Soil scientist 1-363-302-8067x7543
#> 10 Verne Mann Animal nutritionist 1-605-062-7460
ch_generate(locale = "fr_FR")
#> # A tibble: 10 × 3
#> name job phone_number
#> <chr> <chr> <chr>
#> 1 Susan Legros Conseiller en génétique 02 34 41 37…
#> 2 Geneviève-Alix Martineau Journaliste +33 (0)3 24…
#> 3 Emmanuel Rogér d'Maillot Anatomiste 0683629206
#> 4 Lucie Fontainé d'Rénault Technicien de maintenance en informati… +33 (0)5 55…
#> 5 Gabriel Bruneau Psychomotricien +33 1 41 04…
#> 6 Marcel Morvan Régisseur de spectacles 03 95 16 34…
#> 7 Benjamin André Officier de l'armée de l'air 01 41 11 81…
#> 8 Timothée-Honoré Piérre Maître d'hôtel +33 (0)2 39…
#> 9 Hugues Normand-Fontainé Animateur d'activités physiques et spo… 02 67 39 64…
#> 10 Emmanuelle Traore Secrétaire juridique +33 (0)2 23…
ch_generate(locale = "fr_CH")
#> # A tibble: 10 × 3
#> name job phone_number
#> <chr> <chr> <chr>
#> 1 Patrick Diesbach technicien diplômé ES génie mécanique +41 25 212 …
#> 2 Laura Cretton Expert diplômé en finance et investis… 0901 732 920
#> 3 Elodie Menthonnex technicien en radiologie médicale dip… 0900 473 676
#> 4 Danielle Vonlanthen Professeur de judo avec brevet fédéral +41 43 825 …
#> 5 Sandra Treboux Dessinateur en construction microtech… +41 (0)24 3…
#> 6 Noah Paschoud Directeur de studio de gymnastique av… +41 (0)87 6…
#> 7 Camille Charpié-Théraulaz Maître jardinier 0844 173 622
#> 8 Michel Bourquard informaticien de gestion diplômé ES 070 310 10 …
#> 9 Caroline Sandoz dipl. Umfassendes Controlling NDS HF 0878 965 546
#> 10 Maria Isella Maître du cuir et du textile +41 (0)32 0…