-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
359 lines (285 loc) · 11 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
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
---
output: github_document
always_allow_html: true
editor_options:
chunk_output_type: console
markdown:
wrap: 72
execute:
echo: false
message: false
warning: false
---
<!-- 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%",
message = FALSE,
warning = FALSE,
fig.retina = 2,
fig.align = 'center'
)
library(tidyverse)
library(bcsa)
```
# bcsa
<!-- badges: start -->
[![License: CC BY 4.0](https://img.shields.io/badge/License-CC_BY_4.0-lightgrey.svg)](https://creativecommons.org/licenses/by/4.0/)
[![R-CMD-check](https://github.com/Global-Health-Engineering/bcsa/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/Global-Health-Engineering/bcsa/actions/workflows/R-CMD-check.yaml)
[![DOI](https://zenodo.org/badge/686992598.svg)](https://zenodo.org/doi/10.5281/zenodo.10878607)
<!-- badges: end -->
The goal of `bcsa` is to provide datasets for source apportionment of
light absorbing carbon (LAC) in Blantyre, Malawi. This package combines
datasets collected as part of two projects. The first project is on
determining Absorption Angstrom Exponent (AAE) values of local pollution
sources in Blantyre, Malawi. AAE values can be used to differentiate the
LAC from fossil fuel and biomass based sources. The second project is to
determine the light absorbing carbon concentrations by mobile, personal
and stationary monitoring in Blantyre.
The package includes the following seven datasets:
1. `df_aae`: Data of experiments to determine AAE values
2. `df_mm`: Mobile monitoring data in eight settlements
3. `df_mm_road_type`: Mobile monitoring data classified by highways (main_road) and
non-highways (non_main_roads) in eight settlements
4. `df_pm`: Personal monitoring data in four settlements
5. `df_pm_trips`: Data on times when open waste burning was observed during the
personal monitoring
6. `df_sm`: Raw data from stationary monitoring in two settlements
7. `df_collocation`: Data when the two LAC monitors are placed and run next to each other
to check data quality
This study used the MA200 micro-aethalometer to measure the light
absorbing carbon (LAC) concentrations. The MA200 measures the LAC
concentrations in real-time at five different wavelengths, that allows
for source apportionment.
## Installation
You can install the development version of bcsa from
[GitHub](https://github.com/) with:
```{r installation, eval=FALSE, echo=TRUE}
# install.packages("devtools")
devtools::install_github("Global-Health-Engineering/bcsa")
```
Alternatively, you can download the individual datasets as a CSV or XLSX
file from the table below.
```{r, echo=FALSE, message=FALSE, warning=FALSE}
extdata_path <- "https://github.com/Global-Health-Engineering/bcsa/raw/main/inst/extdata/"
read_csv("data-raw/dictionary.csv") |>
distinct(file_name) |>
dplyr::mutate(file_name = str_remove(file_name, ".rda")) |>
dplyr::rename(dataset = file_name) |>
mutate(
CSV = paste0("[Download CSV](", extdata_path, dataset, ".csv)"),
XLSX = paste0("[Download XLSX](", extdata_path, dataset, ".xlsx)")
) |>
knitr::kable()
```
# Datasets
This data package has seven datasets: `df_aae` `df_mm` `df_mm_road_type`
`df_pm` `df_pm_trips` `df_sm` `df_collocation`
## df_aae
This dataset contains data from experiments to determine AAE values of
local pollution sources in Blantyre, Malawi.
- Vehicular emission
- Waste Burning (Plastics)
- Waste Burning (Plastic-based textiles, e.g., polyester)
- Waste Burning (Garden Waste)
- Waste Burning (Cardboard and Paper)
- Mixed waste burning
- Cooking (Using Solid Biofuels - Wood, Charcoal, Briquettes)
All the data mentioned above were collected over 17 days, from 16th May
to 1st June, 2023.
Vehicular emissions: three diesel pick-up trucks were sampled. The
exhaust was monitored by the MA200, positioned approximately 3 meters
from the vehicle’s exhaust, after the vehicle engine was started.
Monitoring was conducted for 20 minutes. Also, mobile monitoring was
carried out on three heavily trafficked roads during peak traffic hours,
with a duration of 20 minutes on each road.
Open waste burning emissions (individual components burning): various
waste components (plastics, textiles, cardboard and paper, wood, and
leaves) were burned in a semi-open guard shelter. The shelter, covered
on three sides and open on one side, allowed for burning at the edge of
the open side. The MA200 monitor was positioned at a 3-meter distance
from the open side, with the micro-cyclone attached to MA200 placed 1.5
meters above the ground. The amount of waste components burned was
carefully determined through trial and error, ensuring concentrations
remained within desired levels while burning for a sufficient duration.
A consistent 20-minute burning duration was chosen to align with vehicle
monitoring. Each waste type was burned in three replicates, with a
minimum half-an-hour gap between each experiment, during which the
shelter was ventilated.
Mixed waste burning: six known mixed waste dumps across the city were
monitored, each for a 20-minute duration.
Cooking emissions: the MA200 was placed at a guardian shelter in Queens,
known for using firewood for cooking. The micro-cyclone was positioned
1.5 meters above the ground and 3 meters from the front windows section
of the shelter. Sampling was conducted for 20 minutes on three days
during peak cooking times.
```{r}
library(bcsa)
```
The `df_aae` data set has `r ncol(df_aae)` variables and
`r nrow(df_aae)` observations. For an overview of the variable names,
see the following table.
```{r, eval=TRUE}
df_aae |>
head() |>
gt::gt() |>
gt::as_raw_html()
```
```{r, echo=FALSE}
readr::read_csv("data-raw/dictionary.csv") |>
dplyr::filter(file_name == "df_aae.rda") |>
dplyr::select(variable_name:description) |>
knitr::kable() |>
kableExtra::kable_styling() |>
kableExtra::scroll_box(height = "400px")
```
## df_mm
Mobile monitoring data in eight settlements in Blantyre, Malawi. The
data was collected from eight settlements (four planned and four
unplanned settlements.
Mobile monitoring utilised a vehicle equipped with a portable MA200
instrument. The micro-cyclone was positioned outside the car’s front
window at an elevation of 1.5 meters above the ground. The vehicle was
driven at a speed of less than 20 km/h.
The monitoring took place from 3rd May to 14th May, 2023, covering both
weekdays and weekends.
The `df_mm` data set has `r ncol(df_mm)` variables and `r nrow(df_mm)`
observations. For an overview of the variable names, see the following
table.
```{r, eval=TRUE}
df_mm |>
head() |>
gt::gt() |>
gt::as_raw_html()
```
```{r, echo=FALSE}
readr::read_csv("data-raw/dictionary.csv") |>
dplyr::filter(file_name == "df_mm.rda") |>
dplyr::select(variable_name:description) |>
knitr::kable() |>
kableExtra::kable_styling() |>
kableExtra::scroll_box(height = "400px")
```
## df_mm_road_type
This dataset is collected during mobile monitoring and is the same as
`df_mm`, except that the highways and non-highways are demarcated in
this dataset.
The `df_mm_road_type` data set has `r ncol(df_mm_road_type)` variables
and `r nrow(df_mm_road_type)` observations. For an overview of the
variable names, see the following table.
```{r, eval=TRUE}
df_mm_road_type |>
head() |>
gt::gt() |>
gt::as_raw_html()
```
```{r, echo=FALSE}
readr::read_csv("data-raw/dictionary.csv") |>
dplyr::filter(file_name == "df_mm_road_type.rda") |>
dplyr::select(variable_name:description) |>
knitr::kable() |>
kableExtra::kable_styling() |>
kableExtra::scroll_box(height = "400px")
```
## df_pm
Personal monitoring data in four unplanned settlements in Blantyre,
Malawi, covering the areas inaccesible by vehicles due to narrow and
undefined unpaved roads.
For personal mobile monitoring, an individual carried the monitoring
equipment and conducted on-foot surveys within the informal settlements.
The micro-cyclone was attached at the collar of the person.
This method was implemented twice in each settlement, from 9:00 a.m. to
11:30 a.m. and from 2:00 p.m. to 4:30 p.m., between the 19th to 25th of
May, 2023, covering weekdays.
The `df_pm` data set has `r ncol(df_pm)` variables and `r nrow(df_pm)`
observations. For an overview of the variable names, see the following
table.
```{r, eval=TRUE}
df_pm |>
head() |>
gt::gt() |>
gt::as_raw_html()
```
```{r, echo=FALSE}
readr::read_csv("data-raw/dictionary.csv") |>
dplyr::filter(file_name == "df_pm.rda") |>
dplyr::select(variable_name:description) |>
knitr::kable() |>
kableExtra::kable_styling() |>
kableExtra::scroll_box(height = "400px")
```
## df_pm_trips
While conducting the personal monitoring, the individual also recorded
the times when the open waste burning. The times when the individual observed the burning events is given in this dataset.
The `df_pm_trips` data set has `r ncol(df_pm_trips)` variables and
`r nrow(df_pm_trips)` observations. For an overview of the variable
names, see the following table.
```{r, eval=TRUE}
df_pm_trips |>
head() |>
gt::gt() |>
gt::as_raw_html()
```
```{r, echo=FALSE}
readr::read_csv("data-raw/dictionary.csv") |>
dplyr::filter(file_name == "df_pm_trips.rda") |>
dplyr::select(variable_name:description) |>
knitr::kable() |>
kableExtra::kable_styling() |>
kableExtra::scroll_box(height = "400px")
```
## df_sm
To capture the ambient concentration and diurnal pattern of LAC,
stationary monitoring was conducted in two specific areas, one planned
and one unplanned. The monitoring campaign spanned from 13th July to
22nd August during the winter season.
The `df_sm` data set has `r ncol(df_sm)` variables and `r nrow(df_sm)`
observations. For an overview of the variable names, see the following
table.
```{r, eval=TRUE}
df_sm |>
head() |>
gt::gt() |>
gt::as_raw_html()
```
```{r, echo=FALSE}
readr::read_csv("data-raw/dictionary.csv") |>
dplyr::filter(file_name == "df_sm.rda") |>
dplyr::select(variable_name:description) |>
knitr::kable() |>
kableExtra::kable_styling() |>
kableExtra::scroll_box(height = "400px")
```
## df_collocation
For quality assurance, the two sensors were collocated multiple times
throughout the study: twice during mobile monitoring, twice during AAE
experiments, and before and after stationary monitoring.
The `df_collocation` data set has `r ncol(df_collocation)` variables and
`r nrow(df_collocation)` observations. For an overview of the variable
names, see the following table.
```{r, eval=TRUE}
df_collocation |>
head() |>
gt::gt() |>
gt::as_raw_html()
```
```{r, echo=FALSE}
readr::read_csv("data-raw/dictionary.csv") |>
dplyr::filter(file_name == "df_collocation.rda") |>
dplyr::select(variable_name:description) |>
knitr::kable() |>
kableExtra::kable_styling() |>
kableExtra::scroll_box(height = "400px")
```
## License
Data are available as
[CC-BY](https://github.com/Global-Health-Engineering/bcsa/blob/main/LICENSE.md).
## Citation
Please cite this package using:
```{r}
citation("bcsa")
```
## Additional data use information