Learn R Programming

charlatan (version 0.6.1)

AddressProvider_en_US: AddressProvider for United States of America

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 -> charlatan::AddressProvider -> AddressProvider_en_US

Methods

Inherited methods


Method address()

address

Usage

AddressProvider_en_US$address()


Method civ_address()

civilian address, the type of address you would expect. Not to be confused with Military address which is also available for this locale.

Usage

AddressProvider_en_US$civ_address()


Method mil_address()

Military address

Usage

AddressProvider_en_US$mil_address()


Method city()

city

Usage

AddressProvider_en_US$city()


Method street_name()

street name

Usage

AddressProvider_en_US$street_name()


Method street_address()

street address

Usage

AddressProvider_en_US$street_address()


Method postcode()

postal code

Usage

AddressProvider_en_US$postcode()


Method building_number()

building number

Usage

AddressProvider_en_US$building_number()


Method state()

state

Usage

AddressProvider_en_US$state()


Method clone()

The objects of this class are cloneable with this method.

Usage

AddressProvider_en_US$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 en: AddressProvider_en_GB, AddressProvider_en_NZ, ColorProvider_en_US, CompanyProvider_en_US, ElementProvider_en_US, FileProvider_en_US, InternetProvider_en_AU, InternetProvider_en_US, JobProvider_en_US, LoremProvider_en_US, PersonProvider_en_GB, PersonProvider_en_NZ, PersonProvider_en_US, PhoneNumberProvider_en_AU, PhoneNumberProvider_en_CA, PhoneNumberProvider_en_GB, PhoneNumberProvider_en_NZ, PhoneNumberProvider_en_US, PhoneNumberProvider_es_MX, SSNProvider_en_US, TaxonomyProvider_en_US, UserAgentProvider_en_US, english-language

Other US: ColorProvider_en_US, CompanyProvider_en_US, ElementProvider_en_US, FileProvider_en_US, InternetProvider_en_US, JobProvider_en_US, LoremProvider_en_US, PersonProvider_en_US, PhoneNumberProvider_en_US, SSNProvider_en_US, TaxonomyProvider_en_US, UserAgentProvider_en_US

Examples

Run this code
(z <- AddressProvider_en_US$new())
z$locale
z$postcode()
z$street_name()
z$address()
z$city()
z$mil_address()
z$civ_address()

Run the code above in your browser using DataLab