View source: R/tf_sample_service.R
get_tf_sample_in_site | R Documentation |
Get sample data in the transaction format at a site.
get_tf_sample_in_site( bdate, edate, state.fips, county, param, site, cached = TRUE, cache_directory = "/cache" )
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. |
cached |
TRUE or FALSE specifying if the data from the call is to be cached. Default: TRUE. (Optional) |
cache_directory |
Place inside user-level cache directory to store the cached data. Default: "/cache". (Optional) |
API response containing all sample data in submission format.
## Not run: bdate <- "20200101" edate <- "20200331" state.fips <- "01" county <- "003" param <- "44201" site <- "0010" result <- get_tf_sample_in_site(bdate, edate, state.fips, county, param, site) result$Data ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.