View source: R/cga_preferred_names.R
an_preferred | R Documentation |
The Composite Gazetteer of Antarctica is a compilation of place names provided by different countries and organisations. The composite nature of the CGA means that there may be multiple names associated with a single feature. The an_preferred
function can be used to resolve a single name per feature. Provide one or more origin
entries and the input gaz
will be filtered to a single name per feature. For features that have multiple names (e.g. have been named by multiple countries) a single name will be chosen, preferring names from the specified origin
bodies where possible.
an_preferred(gaz, origin, unmatched = "random")
gaz |
data.frame or SpatialPointsDataFrame: as returned by |
origin |
character: vector of preferred name origins (countries or organisations), in order of preference. If a given feature has been named by one of these bodies, this place name will be chosen. If the feature in question has not been given a name by any of these bodies, a place name given by another body will be chosen, with preference according to the |
unmatched |
string: how should names be chosen for features that have not been been named by one of the preferred |
data.frame of results
https://data.aad.gov.au/aadc/gaz/scar/, https://www.scar.org/data-products/place-names/
an_read
, an_origins
## Not run: g <- an_read(cache = "session") ## get a single name per feature, preferring the ## Polish name where there is one pnames <- an_preferred(g, origin = "Poland") ## names starting with "Sm", preferring US names then ## Australian ones if available g %>% an_filter("^Sm") %>% an_preferred(origin = c("United States of America", "Australia")) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.