get_rainfall: A function to download data on annual average rainfall in...

Description Usage Arguments Value Note Note Examples

View source: R/get_rainfall.R

Description

Download data on brazilian annual average rainfall according to CAMARILLO-NARANJO et al (2019). Data are available at "globalclimatemonitor.org". The output values refer to the geographical average of the values for each spatial unit (municipality, state or country)

Usage

1
  get_rainfall(level = "municipality", panel = FALSE)

Arguments

level

The geographic level of interest. This opition can be ("country", "state", or "municipality")

panel

Use panel = TRUE if you want to download the database in a panel data format and panel = FALSE otherwise. The default value is FALSE

Value

YCNTRD

The centroid longitude coordinate of the geographical area of interest.

XCNTRD

The centroid latitude coordinate of the geographical area of interest.

CD_GEOCMU

Municipality identification code according to the Brazilian Institute of Geography and Statistics (IBGE). This variable will not appear if you choose the option level = "country" or level = "state".

sigla.state

The state name abbreviation. This variable will not appear if you choose the option level = "country" or level = "municipality".

code.state

The state identification code according to the Brazilian Institute of Geography and Statistics (Instituto Brasileiro de Geografia e Estatistica - IBGE). This variable will not appear if you choose the option level = "country" or level = "municipality".

NM_MUNICIP

The name of each municipality. This variable not appear if you choose the option level = "state" or level = "country".

country

The country name. This variable will not appear if you choose the option level = "state" or level = "municipality".

PREC_year

The annual average rainfall (mm) between 1901 and 2019. These variables will not appear if you choose the option level = "state" or level = "country".

rainfall

The annual average rainfall (mm) when you choose the option panel = TRUE.

Note

Please, cite https://www.globalclimatemonitor.org/.

Note

Please, cite CAMARILLO-NARANJO, Juan Mariano et al. The global climate monitor system: from climate data-handling to knowledge dissemination. International journal of digital earth, v. 12, n. 4, p. 394-414, 2019.

Examples

1
  my_df <- get_rainfall(level = "state", panel = FALSE)

Helson-Gomes/BReco documentation built on May 17, 2020, 4:37 p.m.