Loads deforestation data from INPE.

load_prodes_raw(source)

Arguments

source

A number of different sources are supported:

Passing a numeric vector of years will download the corresponding data from the INPE website (data is organized by prodes-year - from august to july - for more information, see the vignette).

Passing a string with a directory's path will read data from all files named "{path}/DesmatamentoMunicipiosXXXX.txt".

Alternatively, source may be a list of full file paths, or anything else readable by utils::read.csv().

Value

A list of tibble.

See also

load_prodes for loading and treating the data.

Author

DataZoom, Department of Economics, Pontifical Catholic University of Rio de Janeiro.

Examples

if (FALSE) { load_prodes_raw(2017) } if (FALSE) { load_prodes_raw(c(2016, 2017, 2018)) } if (FALSE) { load_prodes_raw(system.file("extdata", package = "datazoom.amazonia")) } if (FALSE) { load_prodes_raw( system.file("extdata", "DesmatamentoMunicipios2015.txt", package = "datazoom.amazonia") ) }