change: Relative Change

View source: R/change.R

changeR Documentation

Relative Change

Description

Calculate relative change as a fraction of original value.

Usage

change(from, to = NULL)

Arguments

from

the original value, or a vector of length 2.

to

the new value, or NULL when from is a vector of length 2.

Value

Relative change between -1 and Inf, where 0 means no change.


arnima-github/arni documentation built on Oct. 28, 2023, 6:18 p.m.