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())
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> <fraudster>
#>   locale: en_US
x$job()
#> [1] "Herbalist"
x$name()
#> [1] "Tiney Glover"
x$color_name()
#> [1] "Plum"
x$safe_color_name()
#> [1] "purple"
x$hex_color()
#> [1] "#46A1D8"
x$safe_hex_color()
#> [1] "#00cc66"
x$rgb_color()
#> [[1]]
#> [1] 249 104 203
#> 
x$rgb_css_color()
#> [1] "rgb(109, 64, 248)"

# different locales
## French
(y <- fraudster(locale = "fr_FR"))
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning:  LoremProvider does not have locale fr_FR, defaulting to en_US locale.
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> <fraudster>
#>   locale: fr_FR
y$job()
#> [1] "Ingénieur système"

## Croatian
(z <- fraudster(locale = "hr_HR"))
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning:  LoremProvider does not have locale hr_HR, defaulting to en_US locale.
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> <fraudster>
#>   locale: hr_HR
z$job()
#> [1] "Tesar"

## Ukranian
(w <- fraudster(locale = "uk_UA"))
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> Warning: Global setting for messy is TRUE
#> <fraudster>
#>   locale: uk_UA
w$job()
#> [1] "Прокурор"
w$color_name()
#> [1] "Лайм"

# geospatial
x$lat()
#> [1] 26.40238
x$lon()
#> [1] -25.52974
x$position()
#>           [,1]
#> [1,] -78.57514
#> [2,] -28.53383

# DOIs (Digital Object Identifier)
x$doi()
#> [1] "10.46918/bncw.12683970"