make_address_field: Define an address field

View source: R/adres_lookup.R

make_address_fieldR Documentation

Define an address field

Description

[Deprecated] Use 'validate_address' instead. Used to define an address field, as a starting point to match the address in the BAG.

Usage

make_address_field(data, columns = NULL, template = NULL)

Arguments

data

Either a dataframe (if columns argument is used), or a vector (if template argument is used).

columns

List, see Details.

template

Character string. See Details.

Details

This function can be used in two ways. Either provide a dataframe, and columns to define which columns to combine into an address field, or provide a text vector and a "template" defining how the address information is included.

With the columns argument, provide a list like: list(straat = "straatnaam", huisnummer = "huisnr"), where the allowed fields are 'straat','huisnummer','woonplaats','huisnummer', 'huisnummertoevoeging', 'postcode'. The right-hand value of the list (between "") is the name of the colum in the provided dataset.

When template is used, it is used to define how the address is provided. For example, with data = "Voorbeeldplein 2 Eendhoven", template should be "straathuisnummerwoonplaats". Use curly braces to separate the fields.


moturoa/shintobag documentation built on April 6, 2024, 7:25 a.m.