View source: R/gmba_ids_from_points.R
gmba_ids_from_points | R Documentation |
Get GMBA Inventory v2.0 mountain range IDs based on xy point coordinates.
gmba_ids_from_points(xy_dataframe, range_selection = "basic", manual = NULL)
xy_dataframe |
A dataframe containing point coordinates, with columns "x" and "y" i.e. longitude and latitude |
range_selection |
Character string, the options are:
|
manual |
Character string containing the IDs of manually selected mountain ranges.
Only needed when |
The input xy_dataframe
with an additional column "GMBA_V2_ID", containing
the GMBA Inventory v2.0 mountain range IDs associated with the respective input point coordinate.
In case a point coordinate is located in more than one mountain polygon (cross-scale), they
are given as a collapsed character string, separated by comma. If a point coordinate does not lie
within a mountain range polygon, an NA is returned
## Not run:
rangeid_vector <- gmba_ids_from_points(xy, "300")
rangeid_vector <- gmba_ids_from_points(xy, "manual", c("11175", "10001"))
rangeid_vector <- gmba_ids_from_points(xy, "manual",
gmba_ids_from_names(c("Black Forest", "European Alps")))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.