Skip to contents

Fraudster - catch all client to make all types of fake data

Usage

fraudster(locale = NULL)

Arguments

locale

(character) the locale to use. options: en_US (default), fr_FR, fr_CH, hr_FR, fa_IR, pl_PL, ru_RU, uk_UA, zh_TW.

Examples

# English - the default locale
(x <- fraudster())
#> <fraudster>
#>   locale: en_US
x$job()
#> [1] "Academic librarian"
x$name()
#> [1] "Deena Boyle"
x$color_name()
#> [1] "DarkGray"
x$safe_color_name()
#> [1] "MediumTurquoise"
x$hex_color()
#> [1] "#567BF2"
x$safe_hex_color()
#> [1] "#0033cc"
x$rgb_color()
#> [[1]]
#> [1]  43 244 225
#> 
x$rgb_css_color()
#> [1] "rgb(136, 20, 96)"

# different locales
## French
(y <- fraudster(locale = "fr_FR"))
#> <fraudster>
#>   locale: fr_FR
y$job()
#> [1] "Aide médico-psychologique"

## Croatian
(z <- fraudster(locale = "hr_HR"))
#> <fraudster>
#>   locale: hr_HR
z$job()
#> [1] "Stalni sudski procjenitelj"

## Ukranian
(w <- fraudster(locale = "uk_UA"))
#> <fraudster>
#>   locale: uk_UA
w$job()
#> [1] "Кінолог"
w$color_name()
#> [1] "Рожево-ліловий"

# geospatial
x$lat()
#> [1] 59.94174
x$lon()
#> [1] -174.322
x$position()
#> [1] -54.41512  32.59763

# DOIs (Digital Object Identifier)
x$doi()
#> [1] "10.61319/ucfq.98217739"