up_or_down: Calculate whether there has been either an increase, decrease...

View source: R/up_or_down.R

up_or_downR Documentation

Calculate whether there has been either an increase, decrease or no change between two values

Description

Calculate whether there has been either an increase, decrease or no change between two values

Usage

up_or_down(from, to)

Arguments

from

The stating value

to

The final value

Value

Text string, one of "decrease", "increase" or "no change"

Examples

up_or_down(100, 200)
up_or_down(200, 100)
up_or_down(100, 100)

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