get_quarterly_summary_in_site: Returns data summaries by yearly quarter.

View source: R/quarterly_service.R

get_quarterly_summary_in_siteR Documentation

Returns data summaries by yearly quarter.

Description

Returns data summaries by yearly quarter.

Usage

get_quarterly_summary_in_site(
  bdate,
  edate,
  state.fips,
  county,
  param,
  site,
  cbdate = NULL,
  cedate = NULL
)

Arguments

bdate

Beginning date to check. Year, month, day format.

edate

Ending date to check. Year, month, day format.

state.fips

State FIPS code. Use get_state_fips() if unsure.

county

County code. Use get_counties_in_state() if unsure.

param

Pollutant parameter that site is measuring.

site

Measurement site code. Use get_sites_by_county() if unsure.

cbdate

Beginning date of last change to DB. (Optional)

cedate

Ending date of last change to DB. (Optional)

Value

API response containing quarterly summary data at a site.

Examples

## Not run: 
bdate <- "20200101"
edate <- "20200102"
state.fips <- "37"
county <- "001"
site <- "001"
param <- "42401"
result <- get_quarterly_summary_in_site(bdate, 
                                        edate, 
                                        state.fips, 
                                        county, 
                                        param, 
                                        site)
result$Data

## End(Not run)

GLOrozcoM/epair documentation built on July 28, 2022, 9:01 p.m.