ratio: Compute Ratios

Description Usage Arguments Details Value

View source: R/smwrQW_x_ratio.R

Description

Computes ratios from water-quality or other data and maintain the integrity of the data, as opposed to methods that use simple substitution

Usage

1
ratio(numerator, denominator)

Arguments

numerator

any valid vector that can be converted to class "mcens." Missing values are permitted but result in missing values in the output.

denominator

any valid vector that can be converted to class "mcens." Missing values are permitted but result in missing values in the output.

Details

Objects of class "qw" are converted to class "mcens" using the qw2mcens function, which preserves the minimum value of 0 for "less than" data rather than as.mcens, which converts the to left-censored values.

Value

An object of class "mcens" that is the result of the requested division.


leppott/baytrends033 documentation built on July 28, 2018, 10:30 p.m.