Object to create addresses for a locale. Makes use of PersonProvider for creating street names.
Returns an AddressProvider object.
charlatan::BareProvider
-> charlatan::BaseProvider
-> charlatan::AddressProvider
-> AddressProvider_en_US
Inherited methods
charlatan::BareProvider$bothify()
charlatan::BareProvider$lexify()
charlatan::BareProvider$numerify()
charlatan::BareProvider$random_digit()
charlatan::BareProvider$random_digit_not_zero()
charlatan::BareProvider$random_digit_not_zero_or_empty()
charlatan::BareProvider$random_digit_or_empty()
charlatan::BareProvider$random_element()
charlatan::BareProvider$random_element_prob()
charlatan::BareProvider$random_int()
charlatan::BareProvider$random_letter()
charlatan::BareProvider$randomize_nb_elements()
charlatan::BaseProvider$allowed_locales()
charlatan::BaseProvider$check_locale()
charlatan::BaseProvider$print()
charlatan::AddressProvider$init_person_provider()
charlatan::AddressProvider$initialize()
address()
address
AddressProvider_en_US$address()
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.
AddressProvider_en_US$civ_address()
mil_address()
Military address
AddressProvider_en_US$mil_address()
city()
city
AddressProvider_en_US$city()
street_name()
street name
AddressProvider_en_US$street_name()
street_address()
street address
AddressProvider_en_US$street_address()
postcode()
postal code
AddressProvider_en_US$postcode()
building_number()
building number
AddressProvider_en_US$building_number()
state()
state
AddressProvider_en_US$state()
clone()
The objects of this class are cloneable with this method.
AddressProvider_en_US$clone(deep = FALSE)
deep
Whether to make a deep clone.
When there is no PersonProvider for this locale, we default back to en_US.
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
(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