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.


arni-magnusson/arni documentation built on Nov. 3, 2023, 7:35 p.m.