Learn R Programming

SWMPr (version 2.5.0)

single_param: Get CDMO records for a single parameter

Description

Get stations records from the CDMO for a single parameter starting with the most current date

Usage

single_param(station_code, param, Max = 100, trace = TRUE)

Value

Returns a swmpr object with one parameter. QAQC columns are not provided.

Arguments

station_code

chr string of station, 7 or 8 characters

param

chr string for a single parameter to return.

Max

numeric value for number of records to obtain from the current date

trace

logical indicating if import progress is printed in console

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: https://cdmo.baruch.sc.edu/webservices.cfm. This function is the CDMO equivalent of exportSingleParamXML.

See Also

all_params, all_params_dtrng

Examples

Run this code

if (FALSE) {

## single parameter for a station, most recent
single_param('hudscwq', 'do_mgl')

}

Run the code above in your browser using DataLab