Calculate absolute differences with abs_diff() and relative differences with rel_diff()
abs_diff()
rel_diff()
rel_diff(x, y) abs_diff(x, y)
x
A double vector.
y
A numeric vector.