Skip to content

Commit

Permalink
Save AP summary of PM2.5 and CO2 in a csv file. Ref #86
Browse files Browse the repository at this point in the history
  • Loading branch information
usr110 committed Jan 19, 2022
1 parent 16ec135 commit 348d09d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions summary_tables_PA_AP.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,8 @@ print(kable(cl))

# PM 2.5 summary and CO2
```{r message=FALSE, warning=FALSE, echo=FALSE}
l <- list()
# I have to keep the first chunk of code to run this part
# high<- c(70, 25, 150,60)
# low<- c(40,15,100,40)
Expand Down Expand Up @@ -482,9 +484,15 @@ for (x in 1:length(cities)) {
cat("\n \n")
cat( paste('#### Descriptive table of Individual-level PM2.5 concentrations and CO2 emissions\n' ))
l[[cities[x]]] <- left_join(summary2, td, by = "Scenario")
l[[cities[x]]]$city <- cities[x]
print(kable(cbind(summary2, td), caption = cities[x]))
}
write_csv(bind_rows(l), "results/multi_city/AP/desc_stats.csv")
```

# Boxplots of Individual-level Physical activity (MMETs)
Expand Down

0 comments on commit 348d09d

Please sign in to comment.