subset_monitors: Create a subset of AQS monitors

Description Usage Arguments Value Examples

View source: R/arepa.R

Description

Create a subset of AQS monitors

Usage

1
2
subset_monitors(MONITORS, parameter_code, observation_percent,
  monitor_info_file = "monitor_list.csv")

Arguments

MONITORS

An AQS data table obtained created with load_annual_average

parameter_code

A parameter code

observation_percent

The required valid observation percent, e.g., 67

monitor_info_file

The path of the file containing extra information about monitors: "monitor_list.csv"

Value

This function returns a data table of annual AQS datasets previously downloaded in local folder 'Data_AQS' with function get_AQS_data_annual.

Examples

1
2
3
4
get_AQS_data_annual(2000:2002)
list_AQS <- lapply(2000:2002, load_annual_average)
AQS <- rbindlist(list_AQS)
sub_AQS <- subset_monitors(AQS, 81102, 67, "~/Google Drive/ARP/Arepa/monitor_list.csv")

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