rsub: Perform a difference reduction

View source: R/wrangledata.R

rsubR Documentation

Perform a difference reduction

Description

This is the subtraction equivalent of sum(...). Specifically, rsub(x1, x2, ..., xn) is equivalent to x1 - sum(x2, ... xn). However, we make one exception: if only a single argument is passed, we return NA. This is so that the result makes sense in diffScenarios.

Usage

rsub(...)

Arguments

...

The values to be reduced

Value

The difference reduction of the values, with special cases handled as described in details.


JGCRI/rgcam documentation built on July 2, 2022, 10:20 a.m.