calculateThalwegDepthMetrics: Calculate thalweg depth metrics: xdepth, sddepth, n_d

Description Usage Arguments Details Value

Description

Calculates the thalweg depth metrics (xdepth, sddepth, n_d) form thalweg depth data.

Usage

1
2
calculateThalwegDepthMetrics(uid, is.wadeable, depth, units = c("m", "cm",
  "mixed"))

Arguments

uid

a vector of site identifiers

is.wadeable

a logical vector, TRUE for each depth that is from a wadeable protocol site (versus a non-wadeable protocol).

depth

a vector of thalweg depths

desired

output units. Can be one of "m", "cm", or "mixed".

Details

The EPA code assumes input data in meters, which this function also assumes. However, the EPA code reports the metrics for wadeable sites in centimeters. This code includes an argument units, which allows the user to specify the desired output units. The mixed option mimics the EPA behavior.

Value

a 'metric' data.frame


jasonelaw/nrsa documentation built on Nov. 8, 2019, 11:34 a.m.