getVarNames: Get Available PRIO GRID Variables

Description Usage Arguments Value Examples

View source: R/pgrid.R

Description

getVarNames returns a data frame of all PRIO GRID variables available to the package. Which variables are available depends on the contents of the PRIO GRID csv files linked by the setDataPath function.

Usage

1
getVarNames(type = c("static", "yearly"), details = FALSE)

Arguments

type

A character string, either 'static' or 'yearly'.

details

A boolean. If TRUE, returns additional details about the available variables (sources, units, etc).

Value

A data frame.

Examples

1
2
3
4
## Not run: 
vars.df <- getVarNames(type = 'static', details = TRUE)

## End(Not run)

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