pm_country_detect: Detect Presence of Country

Description Usage Arguments Value

View source: R/country.R

Description

Determine the presence of country names or abbreviations at the end of a string.

Usage

1
pm_country_detect(.data, dictionary)

Arguments

.data

A postmastr object created with pm_prep

dictionary

Optional; a tbl created with pm_dictionary to be used as a master list for countries. If none is specified, the full default country dictionary will be used.

Value

A tibble with a new logical variable pm.hasCountry that is TRUE if a country name or abbreviation from the given dictionary is found at the end of the address and FALSE otherwise.


slu-openGIS/postmastr documentation built on Dec. 9, 2020, 3:32 a.m.