setDataPath: Set Paths to PRIO GRID csv Files

Description Usage Arguments Details Value Examples

View source: R/pgrid.R

Description

setDataPath is used to (re)set the paths to the csv files containing the PRIO GRID raw data. The path information is saved in the installation directory of the package, so it is persistent across R sessions.

Usage

1
setDataPath(staticPath = "", yearlyPath = "")

Arguments

staticPath

A character string represeting a path pointing to a static PRIO GRID csv file. If the default value of '' is passed, no changes are made.

yearlyPath

A character string represeting a path pointing to a yearly PRIO GRID csv file. If the default value of '' is passed, no changes are made.

Details

It is possible to set a single path if only the static or the yearly variables are required. Also, (re)setting a single path will not overwrite the other.

Value

Void.

Examples

1
2
3
4
## Not run: 
setDataPath(staticPath = '/home/usr/data/PRIO-GRID Static Variables - 2017-12-08.csv')

## End(Not run)

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