search_bag_address: Search for BAG addresses in a text field

search_bag_addressR Documentation

Search for BAG addresses in a text field

Description

[Deprecated] Use 'validate_address' instead. Searches for addresses in a free text field, which may also contain other text. For each field, all BAG addresses are searched - so this function is slow for larger queries, and especially larger BAG datasets.

Usage

search_bag_address(
  txt,
  bag,
  template = "{straat} {huisnummer}",
  bag_column = "adresseerbaarobject",
  progressbar = TRUE
)

Arguments

txt

Free text field (vector)

bag

BAG dataset (dataframe). In-memory.

template

The template to look for in the free text field.

progressbar

If TRUE (the default), displays a simple progress bar.

Examples


## Not run: 
search_bag_address("Er is iets gebeurd op Voorbeeldplein 11",
bag, template = "{straat}{huisnummer}")

## End(Not run)

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