davidcarslaw / openair

Tools for air quality data analysis
https://davidcarslaw.github.io/openair/
GNU General Public License v2.0
307 stars 113 forks source link

[Feature Request]: `importAURN()` (and friends) should respect arguments when `data_type` is, e.g., annual #346

Closed jack-davison closed 1 year ago

jack-davison commented 1 year ago

It'd be a useful QOL update to be able to write, for example:

importAURN(site = "my1", pollutant = "no2", data_type = "annual")

And get back only Marylebone road NO2 annual statistics.

At the moment you get everything back as pollutant/`` aren't honoured.

This shouldn't be a big change. The only issue may relate to the default site being "my1", but we may get around this using missing().

Happy to take a look.