Skip to contents

Thin wrapper around the base - operator for semantic clarity in YAML.

Usage

subtract_value(value, term)

Arguments

value

The value to subtract from.

term

The term to subtract.

Value

The result of value - term.

Examples

subtract_value(10, 5) # Returns 5
#> [1] 5
subtract_value(c(1, 2, 3), 1) # Returns c(0, 1, 2)
#> [1] 0 1 2