abs_diff.RdCalculates the absolute difference of the reference and the scenarios in a new column
abs_diff(data, vars_to_diff, ref)A dataframe
A vector with the names of the variables to calculate the difference
The name of the reference scenario
A dataframe with the new columns