make_address_field | R Documentation |
Use 'validate_address' instead.
Used to define an address field, as a starting point to match the address in the BAG.
make_address_field(data, columns = NULL, template = NULL)
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.