Parameters supported by a station
Source:R/sinaica_station_params_and_dates.R
sinaica_station_params.RdList of air quality parameters of a measuring station for which SINAICA has data
Arguments
- station_id
the numeric code corresponding to each station. See
stations_sinaicafor a list of stations and their ids.- type
The type of data to download. One of the following:
Crude - Crude data that has not been validated
Validated - Validated data (may not be the most up-to-date)
Manual - Manual data
Examples
## station id 271 is Xalostoc. See `stations_sinaica`
response <- try(sinaica_station_params(271, "Crude"), silent = TRUE)
if (inherits(response, "try-error")) {
message("An error occurred during the SINAICA API call.")
param_data <- NULL
} else {
param_data <- response
}
head(param_data)
#> param_code param_name
#> 1 SO2 Dióxido de azufre
#> 2 NO2 Dióxido de nitrógeno
#> 3 DV Dirección del viento
#> 4 HR Humedad relativa
#> 5 CO Monóxido de carbono
#> 6 NO Óxido nítrico