-
Notifications
You must be signed in to change notification settings - Fork 7
/
README.Rmd
294 lines (192 loc) · 6.8 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
---
output: github_document
---
<a href="https://github.com/datazoompuc/datazoom.amazonia"><img src="https://raw.githubusercontent.com/datazoompuc/datazoom.amazonia/master/logo.png?token=AU72KNQCGY4ZR6XLARTNSXLBXCPNG" align="left" width="100" hspace="10" vspace="6"></a>
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# datazoom.amazonia
<!-- badges: start -->
[![CRAN version](https://www.r-pkg.org/badges/version/datazoom.amazonia?color=orange)](https://cran.r-project.org/package=datazoom.amazonia?style=flat)
[![R build status](https://github.com/datazoompuc/datazoom.amazonia/workflows/R-CMD-check/badge.svg)](https://github.com/datazoompuc/datazoom.amazonia/actions?style=flat)
[![CRAN downloads](https://cranlogs.r-pkg.org/badges/grand-total/datazoom.amazonia?color=blue)](https://cran.r-project.org/package=datazoom.amazonia?style=flat)
[![CRAN downloads](https://cranlogs.r-pkg.org/badges/datazoom.amazonia?color=lightgrey)](https://cran.r-project.org/package=datazoom.amazonia?style=flat)
![Languages](https://img.shields.io/github/languages/count/datazoompuc/datazoom.amazonia?style=flat)
![Commits](https://img.shields.io/github/commit-activity/y/datazoompuc/datazoom.amazonia?style=flat)
![Open Issues](https://img.shields.io/github/issues-raw/datazoompuc/datazoom.amazonia?style=flat)
![Closed Issues](https://img.shields.io/github/issues-closed-raw/datazoompuc/datazoom.amazonia?style=flat)
![Files](https://img.shields.io/github/directory-file-count/datazoompuc/datazoom.amazonia?style=flat)
![Followers](https://img.shields.io/github/followers/datazoompuc?style=flat)
<!-- badges: end -->
The datazoom.amazonia package facilitates access to official Brazilian Amazon data, including agriculture, deforestation, production. The package provides functions that download and pre-process selected datasets.
## Installation
You can install the released version of `datazoom.amazonia` from
[CRAN](https://CRAN.R-project.org/package=datazoom.amazonia) with:
``` {r, eval=FALSE}
install.packages("datazoom.amazonia")
```
And the development version from GitHub with:
``` {r, eval=FALSE}
# install.packages("devtools")
devtools::install_github("datazoompuc/datazoom.amazonia")
```
```{r, echo=FALSE, message=FALSE}
devtools::load_all()
```
**[1 - Environmental data](#environmental-data)**
<table>
<tr><td>
|||
|---|---|
| **[PRODES](#prodes)** | _Yearly deforestation_ |
| **[DETER](#deter)** | _Alerts on forest cover changes_ |
| **[DEGRAD](#degrad)** | _Forest degradation_ |
| **[Imazon](#imazon)** | _Deforestation pressure in the Amazon_ |
</td><td>
|||
|---|---|
| **[IBAMA](#ibama)** | _Environmental fines_ |
| **[MapBiomas](#mapbiomas)** | _Land cover and land use_ |
| **[TerraClimate](#terraclimate)** | _Climate data_ |
| **[SEEG](#seeg)** | _Greenhouse gas emission estimates_ |
| **[CENSOAGRO](#censoagro)** | _Agriculture activities_ |
</td></tr> </table>
**[2 - Social data](#social-data)**
<table>
<tr><td>
|||
|---|---|
| **[IPS](#ips)** | _Amazon Social Progress Index_ |
| **[DATASUS](#datasus)** | _Causes of mortality and availability of hospital beds_ |
| **[IEMA](#iema)** | _Access to electricity in the Amazon region_ |
| **[Population](#population)** | _Population_ |
</td></tr> </table>
**[3 - Economic data](#economic-data)**
<table>
<tr><td>
|||
|---|---|
| **[COMEX](#comex)** | _Brazilian international trade_ |
| **[BACI](#baci)** | _Global international trade_ |
| **[PIB-Munic](#pib-munic)** | _Municipal GDP_ |
| **[CEMPRE](#cempre)** | _Central register of companies_ |
| **[PAM](#pam)** | _Agricultural production_ |
</td><td>
|||
|---|---|
| **[PEVS](#pevs)** | _Forestry and extraction_ |
| **[PPM](#ppm)** | _Livestock farming_ |
| **[SIGMINE](#sigmine)** | _Mining_ |
| **[ANEEL](#aneel)** | _Energy development_ |
| **[EPE](#epe)** | _Energy consumption_ |
</td></tr> </table>
**[4 - Other tools](#other-tools)**
<table>
<tr><td>
|||
|---|---|
| **[Legal Amazon Municipalities](#legal-amazon-municipalities)** | _Dataset with brazilian cities and whether they belong to the Legal Amazon_ |
| **[The 'googledrive' package](#googledrive)** | _Troubleshooting and information for downloads from Google Drive_ |
</table>
# Environmental Data
## PRODES
```{r child = "vignettes/PRODES.Rmd"}
```
## DETER
```{r child = "vignettes/DETER.Rmd"}
```
## DEGRAD
```{r child = "vignettes/DEGRAD.Rmd"}
```
## Imazon
```{r child = "vignettes/IMAZON.Rmd"}
```
🔴 This function uses the `googledrive` package to download data. In case of authentication errors, see [googledrive](#googledrive).
## IBAMA
```{r child = "vignettes/IBAMA.Rmd"}
```
## MapBiomas
```{r child = "vignettes/MAPBIOMAS.Rmd"}
```
## TerraClimate
```{r child = "vignettes/TERRACLIMATE.Rmd"}
```
## SEEG
```{r child = "vignettes/SEEG.Rmd"}
```
🔴 This function uses the `googledrive` package to download data at the municipality level. In case of authentication errors, see [googledrive](#googledrive).
## CENSOAGRO
```{r child = "vignettes/CENSOAGRO.Rmd"}
```
# Social Data
## IPS
```{r child = "vignettes/IPS.Rmd"}
```
## DATASUS
```{r child = "vignettes/DATASUS.Rmd"}
```
## IEMA
```{r child = "vignettes/IEMA.Rmd"}
```
🔴 This function uses the `googledrive` package to download data. In case of authentication errors, see [googledrive](#googledrive).
## Population
```{r child = "vignettes/POPULATION.Rmd"}
```
# Economic Data
## COMEX
```{r child = "vignettes/COMEX.Rmd"}
```
## BACI
```{r child = "vignettes/BACI.Rmd"}
```
## PIB-Munic
```{r child = "vignettes/PIBMUNIC.Rmd"}
```
## CEMPRE
```{r child = "vignettes/CEMPRE.Rmd"}
```
## PAM
```{r child = "vignettes/PAM.Rmd"}
```
## PEVS
```{r child = "vignettes/PEVS.Rmd"}
```
## PPM
```{r child = "vignettes/PPM.Rmd"}
```
## SIGMINE
```{r child = "vignettes/SIGMINE.Rmd"}
```
## ANEEL
```{r child = "vignettes/ANEEL.Rmd"}
```
## EPE
```{r child = "vignettes/EPE.Rmd"}
```
# Other tools
## Legal Amazon Municipalities
```{r child = "vignettes/municipalities.Rmd"}
```
## <a name="googledrive"></a> The 'googledrive' package
```{r child = "vignettes/GOOGLEDRIVE.Rmd"}
```
## Credits
DataZoom is developed by a team at Pontifícia Universidade Católica do Rio de Janeiro (PUC-Rio), Department of Economics. Our official website is at: <https://www.econ.puc-rio.br/datazoom/>.
To cite package `datazoom.amazonia` in publications use:
> Data Zoom (2023). Data Zoom: Simplifying Access To Brazilian Microdata.
> https://www.econ.puc-rio.br/datazoom/english/index.html
A BibTeX entry for LaTeX users is:
```
@Unpublished{DataZoom2023,
author = {Data Zoom},
title = {Data Zoom: Simplifying Access To Brazilian Microdata},
url = {https://www.econ.puc-rio.br/datazoom/english/index.html},
year = {2023},
}
```