ChileAirQuality {AtmChile} | R Documentation |
ChileAirQuality
Description
function that compiles air quality data from the National Air Quality System (S.I.N.C.A.)
Usage
ChileAirQuality(
Comunas = "INFO",
Parametros,
fechadeInicio,
fechadeTermino,
Site = FALSE,
Curar = TRUE,
st = FALSE
)
Arguments
Comunas |
data vector containing the names or codes of the monitoring stations. Available stations: "P. O'Higgins","Cerrillos 1","Cerrillos","Cerro Navia", "El Bosque","Independecia","La Florida","Las Condes","Pudahuel","Puente Alto","Quilicura", "Quilicura 1","Alto Hospicio","Arica","Las Encinas Temuco","Nielol Temuco", "Museo Ferroviario Temuco","Padre Las Casas I","Padre Las Casas II","La Union", "CESFAM Lago Ranco","Mafil","Fundo La Ribera","Vivero Los Castanos","Valdivia I", "Valdivia II","Osorno","Entre Lagos","Alerce","Mirasol","Trapen Norte","Trapen Sur", "Puerto Varas","Coyhaique I","Coyhaique II","Punta Arenas". To see the full list of stations use ChileAirQuality() |
Parametros |
data vector containing the names of the air quality parameters. Available parameters: "PM10", "PM25", "CO","SO2", "NOX", "NO2", "NO", "O3", "temp" (temperature), "RH" (relative humidity), "ws" ( wind speed), "wd" (wind direction). |
fechadeInicio |
text string containing the start date of the data request |
fechadeTermino |
text string containing the end date of the data request |
Site |
logical value that allows entering the code of the monitoring station in the variable "Comunas" |
Curar |
logical value that activates data curation for particulate matter, nitrogen oxides, relative humidity and wind direction. |
st |
logical value that includes validation reports from S.I.N.C.A. "NV": No validated, "PV": Pre-validated, "V": Validated. |
Value
A data frame with air quality data.
Source
<https://sinca.mma.gob.cl/>
Examples
try({
stations <- ChileAirQuality()
}, silent =TRUE)
try({
data <- ChileAirQuality(Comunas = "El Bosque",
Parametros = c("PM10", "PM25"), fechadeInicio = "01/01/2020",
fechadeTermino = "02/01/2020")
}, silent =TRUE)
try({
head(ChileAirQuality(Comunas = c("EB", "SA"),
Parametros = "PM10", fechadeInicio = "01/01/2020",
fechadeTermino = "01/03/2020", Site = TRUE))
}, silent = TRUE)