getPrioRaster: Get PRIO GRID Data as a Raster

Description Usage Arguments Details Value Examples

View source: R/pgrid.R

Description

Returns the requested PRIO GRID variables as a global raster at 0.5 x 0.5 decimal degree resolution.

Usage

1
getPrioRaster(names, years = c())

Arguments

names

The names of the variables to be transformed into a raster. A warning will be issues for variables that are unavailable.

years

An integer vector indicating the years for which the yearly variables should be returned. Ignored for static variables.

Details

Note that only variables contained in the PRIO GRID csv files linked by the setDataPath function will be available. Download the PRIO GRID csv files at http://http://grid.prio.org/#/download.

Value

A list containing (1) a VeloxRaster object and (2) a data frame with meta data about the PRIO GRID variables.

Examples

1
2
3
4
5
6
## Not run: 
prio.ls <- getPrioRaster(names = 'nlights_calib_mean', years = 2005:2010)
vx <- prio.ls$raster
meta.df <- prio.ls$meta

## End(Not run)

hunzikp/pgrid documentation built on May 28, 2019, 5:43 a.m.