Learn R Programming

charlatan (version 0.6.1)

MiscProvider: MiscProvider

Description

miscellaneous methods

Arguments

Super class

charlatan::BareProvider -> MiscProvider

Active bindings

language_locale_codes

(list) locale codes by locale family

Methods

Inherited methods


Method boolean()

get a random boolean, TRUE or FALSE

Usage

MiscProvider$boolean(chance_of_getting_true = 50)

Arguments

chance_of_getting_true

(integer) an integer, default: 50


Method null_boolean()

get a random boolean, TRUE or FALSE, or NULL

Usage

MiscProvider$null_boolean()


Method locale()

get a random locale

Usage

MiscProvider$locale()


Method language_code()

random language code

Usage

MiscProvider$language_code()


Method clone()

The objects of this class are cloneable with this method.

Usage

MiscProvider$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

Run this code
(x <- MiscProvider$new())
x$language_locale_codes
x$language_code()
x$locale()
x$boolean()
x$null_boolean()

Run the code above in your browser using DataLab