Skip to contents

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

Value

Returns an AddressProvider object.

Details

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

Note

You cannot instantiate the Parent providers. You must use one of the localized one.

Super classes

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

Methods

Inherited methods


Method new()

Create a new AddressProvider object

Usage

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.