GNRS: Standardize political division names

Description Usage Arguments Value Note Examples

View source: R/gnrs.R

Description

GNRS returns standardized political division names (according to geonames.org).

Usage

1
GNRS(political_division_dataframe, batches = NULL, ...)

Arguments

political_division_dataframe

A properly formatted dataframe, see http://bien.nceas.ucsb.edu/bien/tools/gnrs/gnrs-api/

batches

NULL or Numeric. Optional number of batches to divide the request into for parallel processing.

...

Additional parameters passed to internal functions

Value

Dataframe containing GNRS results.

Note

To create an empty and properly formatted dataframe, use GNRS_template()

The fields the GNRS takes as input are titled "country", "state_province", and "county_parish" for simplicity, but these field actually refer to 0th-, 1st-, and 2nd-order political division, respectively. In the case of some exceptions (e.g. the UK) this distinction becomes important (e.g. Ireland is a 1st-order political division and should be treated as a "state_province" and cannot be matched as a country.)

Examples

1
2
3
4
5
6
## Not run: 
results <- GNRS(political_division_dataframe = gnrs_testfile)
  


## End(Not run)

GNRS documentation built on Oct. 14, 2021, 1:09 a.m.