Skip to content

Commit ca650d8

Browse files
committed
update figures
1 parent c2e2b74 commit ca650d8

File tree

8 files changed

+272
-270
lines changed

8 files changed

+272
-270
lines changed

R/prep_analysis.R

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ df_muni_year <- read_excel("data/bla_municipalities_4trees.xlsx",
1111
sheet = "municipality_annual",
1212
.name_repair = "universal")
1313

14-
#municipalities to include. Exclude new munis and state capitals
14+
#municipalities to include. Exclude new and state capitals
1515
df_muni %>% filter(flag_include == "yes") %>% pull(muni_code) -> keep_muni #794
1616

1717
#Basic reference vectors
@@ -67,6 +67,14 @@ dfgam$log_min_salary_mean <- log1p(dfgam$min_salary_mean)
6767
dfgam$gdp_percapita_usd = dfgam$gdp_percapita_reais / 3.946
6868
dfgam$gva_agri_percapita_usd = dfgam$gva_agri_percapita_reais / 3.946
6969

70+
#check
71+
dfgam %>%
72+
filter(is.na(totloss_5y_percent_86)) %>%
73+
group_by(state_name, muni_name, year) %>% summarise(acount = n()) #0
74+
dfgam %>%
75+
filter(is.na(loss_immediate_percent_86)) %>%
76+
group_by(state_name, muni_name, year) %>% summarise(acount = n()) #0
77+
7078
#Export for further use
7179
saveRDS(dfgam, "data/dfgam.rds")
7280

R/run_analysis.R

Lines changed: 263 additions & 269 deletions
Large diffs are not rendered by default.

data/dfgam_matched_model.rds

-7 Bytes
Binary file not shown.
14.2 KB
Loading
20.5 KB
Loading

data/figures/fig_map_studyarea.png

-19.8 KB
Loading
15.4 KB
Loading
-15.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)