R/proportional.R
proportional_difference.Rd
Calculates the proportional difference for two sets of numbers.
proportional_difference(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_change()
proportional_change()
proportional_difference(1, 2) #> [1] 0.6666667 proportional_difference(2, 1) #> [1] -0.6666667