download_24hr_average(type, year, progress = interactive())

Arguments

type

type of data to download.

  • "SO2" - Sulfur Dioxide (parts per billion)

  • "PS" - Suspended solids

year

a numeric vector containing the years for which to download data (the earliest possible value is 1986 for SO2 and 1995 for PS)

progress

whether to display a progress bar (TRUE or FALSE). By default it will only display in an interactive session.

Value

A data.frame with pollution data.

Examples

if (FALSE) { head(download_24hr_average("PS", 2017)) }