wqp_checkUnits: Look up missing units, possibly converting them to a supplied...

Description Usage Arguments

Description

Replaces missing units by: 1. Looking up using USGSPCode 2. If value is zero, assigns units as most commonly used units in dataset

Usage

1
2
wqp_checkUnits(wqpData, convertTo = NULL, inconvertibles = c("preserve",
  "omit"), depthUnits = NULL)

Arguments

wqpData

data.frame returned by readWQPData

convertTo

Optional character vector specifying the units to be converted to. If more than one is provided, they are tried in the order they are given. The udunits2 package is used for conversion.

inconvertibles

Should units that cannot be converted be preserved or omitted from the result?

depthUnits

Units to which to convert height/depth measurements, if desired.

convertTo

vector of candidates for unit conversion.


markwh/wqp documentation built on May 21, 2019, 12:37 p.m.