Replaces missing units by: 1. Looking up using USGSPCode 2. If value is zero, assigns units as most commonly used units in dataset
1 2 | wqp_checkUnits(wqpData, convertTo = NULL, inconvertibles = c("preserve",
"omit"), depthUnits = NULL)
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.