load_annual_average: Load annual AQS datasets

Description Usage Arguments Details Value Examples

View source: R/arepa.R

Description

Load annual AQS datasets

Usage

1

Arguments

year

A year or list of years (from 1990 to 2018)

Details

As part of the process in generating unique site codes, county and site numbers are coerced to be strings to provide standard formatting. As of the most recent package update, state codes are read in as strings precluding the need to convert the file. However, in the future, the EPA may change the data format again, which may cause some errors in site code formatting.

The source of this data formatting is the inclustion of Canadian locations, which have the state code "CC"

See this link for more information: https://aqs.epa.gov/aqsweb/helpfiles/state_code.htm

Value

This function returns a data table of annual AQS datasets previously downloaded in local folder 'Data_AQS' with function get_AQS_data_annual. A unique monitor key Monitor is created.

Examples

1
2
get_AQS_data_annual(2000:2002)
AQS <- load_annual_average(2000:2002)

czigler/arepa documentation built on Oct. 2, 2020, 7:38 p.m.