mean.qw: Arithmetic Mean

View source: R/mean.qw.R

mean.qwR Documentation

Arithmetic Mean

Description

Computes the arithmetic mean of water-quality data. This function is intended primarily to compute a useful mean of a small set of data, for example to compute the mean of daily samples. See Note.

Usage

## S3 method for class 'qw'
mean(x, lt.tol = 0.5, ...)

Arguments

x

the water-quality data object.

lt.tol

an arbitrary tolerance metric to drop interval-censoring. See Details.

...

further arguments passed to or from other methods.

Details

The lt.tol argument can be used to collapse interval censored data, creating an uncensored value, when the range of interval censored data is less than lt.tol time the detection limit. This generally results in reasonable estimates of values for the intended purpose.

Value

The mean of thw water-quality data as class "qw."

Note

The mean and standard deviation of censored water-quality data should be computed using censStats.

See Also

censStats


USGS-R/smwrQW documentation built on Oct. 11, 2022, 6:13 a.m.