change: Gives the absolute value of the per cent or total change...

View source: R/change.R

changeR Documentation

Gives the absolute value of the per cent or total change between two values

Description

Gives the absolute value of the per cent or total change between two values

Usage

change(from, to, type)

Arguments

from

The starting value

to

The finishing value

type

Either "percent" or "value"

Value

A numeric value giving the percent change or absolute change between the two values

Examples

change(200, 100, "percent")
change(200, 100, "value")
change(100, 200, "percent")

PublicHealthEngland/hcaidcs documentation built on Jan. 19, 2024, 8:38 a.m.