Start date and end date of the range for which SINAICA has data for an air quality station
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_dates(271, "Manual"), silent = TRUE)
if (inherits(response, "try-error")) {
message("An error occurred during the SINAICA API call.")
dates_data <- NULL
} else {
dates_data <- response
}
print(dates_data)
#> [1] "1997-01-02" "2024-12-26"