Learn R Programming

charlatan (version 0.6.1)

AddressProvider_nl_NL: AddressProvider for The Netherlands

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_nl_NL

Methods

Inherited methods


Method address()

Create an address, a combination of street, postal code and city. The three components street, postal code and city are generated independently, so they are not related.

Usage

AddressProvider_nl_NL$address()


Method city()

Create a city

Usage

AddressProvider_nl_NL$city()


Method street_name()

Create a street name

Usage

AddressProvider_nl_NL$street_name()


Method street_address()

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

Usage

AddressProvider_nl_NL$street_address()


Method postcode()

Create a postal code, does not exclude impossible postcodes in The Netherlands (leading zero for examples) but looks good enough for most purposes.

Usage

AddressProvider_nl_NL$postcode()


Method building_number()

building number.

Usage

AddressProvider_nl_NL$building_number()


Method province()

Create a province.

Usage

AddressProvider_nl_NL$province()


Method clone()

The objects of this class are cloneable with this method.

Usage

AddressProvider_nl_NL$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 nl: ElementProvider_nl_NL, JobProvider_nl_NL, PersonProvider_nl_NL, PhoneNumberProvider_nl_BE, PhoneNumberProvider_nl_NL, SSNProvider_nl_NL, dutch-language

Other NL: ElementProvider_nl_NL, JobProvider_nl_NL, PersonProvider_nl_NL, PhoneNumberProvider_nl_NL, SSNProvider_nl_NL

Examples

Run this code
(z <- AddressProvider_nl_NL$new())
z$locale
z$postcode()
z$street_name()
z$address()
z$city()
z$province()

Run the code above in your browser using DataLab