Learn R Programming

SWMPr (version 2.0.0)

all_params_dtrng: Get CDMO records within a date range

Description

Get station records from the CDMO within a date range

Usage

all_params_dtrng(station_code, dtrng, param = NULL)

Arguments

station_code
chr string of station, 7 or 8 characters
dtrng
two element chr string, each of format MM/DD/YYYY
param
chr string for a single parameter to return, defaults to all parameters for a station type.

Value

  • Returns a swmpr object, all parameters for a station type (nutrients, water quality, or meteorological) or a single parameter if specified. QAQC columns are not provided for single parameters. Up to 1000 records can be obtained.

Details

This function retrieves data from the CDMO through the web services URL. The computer making the request must have a registered IP address. Visit the CDMO web services page for more information: http://cdmo.baruch.sc.edu/webservices.cfm. This function is the CDMO equivalent of exportAllParamsDateRangeXMLNew.

See Also

all_params, single_param

Examples

Run this code
## get all parameters within a date range
all_params_dtrng('hudscwq', c('09/10/2012', '02/8/2013'))

## get single parameter within a date range
all_params_dtrng('hudscwq', c('09/10/2012', '02/8/2013'),
   param = 'do_mgl')

Run the code above in your browser using DataLab