ratio: Compute Ratios

View source: R/ratio.R

ratioR Documentation

Compute Ratios

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

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.


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