get_region_from_coordinates: Return the geographci region of a set of coordinates...

Description Usage Arguments Details Value Author(s)

View source: R/get_region_from_coordinates.R

Description

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.

Usage

1
2
get_region_from_coordinates(obj, shapefile = "NUTS0",
  path_to_shapefile = NULL)

Arguments

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

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:

Value

A vector containing all the shapefile_id_field

Author(s)

Matteo De Felice


matteodefelice/panas documentation built on March 4, 2020, 4:19 a.m.