baytrends (version 1.1.0)

mean.qw: 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 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.

Value

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

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.