Arith-censored: Arithmetic Methods for 'lcens', 'mcens', and 'qw' objects

Arith-censoredR Documentation

Arithmetic Methods for lcens, mcens, and qw objects

Description

Some limited arithmetic methods are possible and well-defined for censored data. Water-quality data require specialized functions to maintain data integrity.

Usage

## S4 method for signature 'lcens,numeric'
Arith(e1, e2)

## S4 method for signature 'numeric,lcens'
Arith(e1, e2)

## S4 method for signature 'lcens,lcens'
Arith(e1, e2)

## S4 method for signature 'mcens,numeric'
Arith(e1, e2)

## S4 method for signature 'numeric,mcens'
Arith(e1, e2)

## S4 method for signature 'mcens,mcens'
Arith(e1, e2)

## S4 method for signature 'qw,numeric'
Arith(e1, e2)

## S4 method for signature 'numeric,qw'
Arith(e1, e2)

## S4 method for signature 'qw,qw'
Arith(e1, e2)

Arguments

e1, e2

numeric, censored, or water-quality data. Missing values are permitted in either argument and result in a missing value in the output.

Value

An object of the appropriate class for the data.

See Also

add, ratio

Examples

as.lcens(c(1, 3), 2) + 1
as.lcens(c(1, 3), 2) * 2


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