adminify_tokens: Calculate an administrative division codes for each token...

Description Usage Arguments Value See Also

View source: R/neogeonames.R

Description

This function infers an admin code and geonameid for each token in order from left-to-right.

Usage

1
adminify_tokens(tokens, admin = akac, n = 1, p = list(ignore.case = T))

Arguments

tokens

The place name query tokens.

admin

The admin codes to search.

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_delim


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