This package downloads the meteorological and air quality data from Bogota Air Quality Network. It returns a data.frame
ready to be used for analyzis.
To install bogotAIR
you need first to install devtools
.
You can do it by:
install.package("devtools")
Then install bogotAIR
by:
devtools::install_github("quishqa/bogotAIR")
Currently bogotAIR
has one function: download_rmcab_data()
.
To use this function you need to know the code of the station. You can check it by:
library(bogotAIR)
rmcab_aqs
For example, If we want to download data for the first week of 2023 for Usaquen station. We do the following:
library(bogotAIR)
rmcab_aqs # To check Usaquen code
usaquen_code <- 1
start <- "01-01-2023"
end <- "07-01-2023"
usaquen_data <- download_rmcab_data(aqs_code = usaquen_code,
start_date = start,
end_date = end)
rmcab_params # To check parameters units
Thanks to RMCAB for sharing their air quality data.