R/proportional.R
proportional_change.Rd
Calculates the proportional change for two sets of numbers.
proportional_change(x, x2)
A numeric object (vector, matrix or array) of non-negative numbers.
A second numeric object of non-negative numbers.
A numeric object of the proportional change.
Other proportional: proportional_difference()
proportional_difference()
proportional_change(1, 2) #> [1] 1 proportional_change(2, 1) #> [1] -0.5