R/nice_things.R
up_or_down.Rd
Calculate whether there has been either an increase, decrease or no change between two values
up_or_down(from, to)
The stating value
The final value
Text string, one of "decrease", "increase" or "no change"
up_or_down(100, 200)
#> [1] "increase"
up_or_down(200, 100)
#> [1] "decrease"
up_or_down(100, 100)
#> [1] "no change"