Learn R Programming

charlatan (version 0.6.1)

AddressProvider: AddressProvider

Description

Object to create addresses for a locale. Makes use of PersonProvider for creating street names.

Arguments

Value

Returns an AddressProvider object.

Super classes

charlatan::BareProvider -> charlatan::BaseProvider -> AddressProvider

Methods

Inherited methods


Method new()

Create a new AddressProvider object

Usage

AddressProvider$new()

Returns

A new AddressProvider object


Method address()

Create an address, a combination of street, postal code and city.

Usage

AddressProvider$address()


Method city()

Create a city

Usage

AddressProvider$city()


Method street_name()

Create a street name.

Usage

AddressProvider$street_name()


Method street_address()

Create a street address, a combination of streetname and house indicator.

Usage

AddressProvider$street_address()


Method postcode()

Create a postal code

Usage

AddressProvider$postcode()


Method init_person_provider()

initialize the person provider (for use in addresses based on names)

Usage

AddressProvider$init_person_provider(locale)

Arguments

locale

locale


Method clone()

The objects of this class are cloneable with this method.

Usage

AddressProvider$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Details

When there is no PersonProvider for this locale, we default back to en_US.

See Also

Other ParentProviders: ColorProvider, CompanyProvider, InternetProvider, JobProvider, LoremProvider, PersonProvider, PhoneNumberProvider, TaxonomyProvider, UserAgentProvider