Skip to contents

Populates INFO data frame with additional user-supplied information concerning the measured parameter.

Usage

populateParameterINFO(parameterCd, INFO, interactive = TRUE)

Arguments

parameterCd

character USGS parameter code

INFO

dataframe with value and code columns. Default is INFO

interactive

logical Option for interactive mode. If TRUE, there is user interaction for error handling and data checks. Default is TRUE. If running in batch, should be set to FALSE.

Value

INFO dataframe

Examples

# \donttest{
library(dataRetrieval)
INFO <- readNWISsite('01594440')
#> Warning: NWIS servers are slated for decommission. Please begin to migrate to read_waterdata_monitoring_location
#> GET: https://waterservices.usgs.gov/nwis/site/?siteOutput=Expanded&format=rdb&site=01594440
parameterCd <- "01075"
parameterData <- readNWISpCode(parameterCd)
#> ALERT: All NWIS services are slated for decommission
#> and new dataRetrieval functions will be added.
#> For up-to-date information, see: 
#> https://doi-usgs.github.io/dataRetrieval/articles/Status.html
INFO$param.nm <- parameterData$parameter_nm
INFO$param.units <- parameterData$parameter_units
INFO$paramShortName <- parameterData$srsname
INFO$paramNumber <- parameterData$parameter_cd

INFO <- populateParameterINFO(parameterCd, INFO, interactive = FALSE)
# }