adminify_regex: Calculate administrative division codes using a named regular...

Description Usage Arguments Value See Also

View source: R/neogeonames.R

Description

Only return a result if the all named patterns are found.

Usage

1
adminify_regex(query, regex, n = 1, p = list(ignore.case = T))

Arguments

query

The place name query.

regex

The list object with a "pattern" and admin code "name" entry. The pattern entry is a regular expression with groups that correspond to the names in the name vector.

n

The number of allowable fuzzy search results before returning the top result, otherwise nothing.

p

The parameters for agrep.

Value

The list with "id" and "ac" atomic vectors consisting of the geonameid and administrative class division values or NA values if missing.

See Also

adminify_regexes


dnanto/neogeonames documentation built on Sept. 21, 2020, 7:42 p.m.