Description Usage Arguments Details Value Author(s)
View source: R/get_region_from_coordinates.R
The function defines in which region a set of coordinates (stored into a data.frame
) lie
The administrative boundaries can be chosen from a set of pre-definites shapefiles.
1 2 | get_region_from_coordinates(obj, shapefile = "NUTS0",
path_to_shapefile = NULL)
|
obj |
A data frame of coordinates stored using lat/lon coordinates. See Details section for further details. |
shapefile |
The shapefile to be used to aggregate the grid points. |
Details
obj
must be a data frame containing two variables:
1. Latitude: a double in the range -90, 90 named as lat, Lat, latitude, latit, etc.
2. Longitude: a double in the range -180, 180 named as lon, Lon, longitude, long, etc.
The shapefiles available are the following:
NUTS0-2
: Data from EUROSTAT NUTS (small islands removed) https://ec.europa.eu/eurostat/web/gisco/geodata/reference-data/administrative-units-statistical-units/nutscountries_EU
eh2050
: cluster as defined in the FP7 e-Highway2050 project
hybas05
: HydroBASINS Level 5 (http://www.hydrosheds.org/page/hydrobasins)
hybas06
: HydroBASINS Level 6 (http://www.hydrosheds.org/page/hydrobasins)
WAPP
: WAPP catchments from the JRC LISFLOOD hydrological model
A vector containing all the shapefile_id_field
Matteo De Felice
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.