Generic function for changing the units of measurement
change_units(object, variable, unit, sport, ...)changeUnits(object, variable, unit, sport, ...)
The object of which the units of measurement are changed.
A vector of variables whose units are to be changed.
A vector with the units, corresponding to variable.
A vector of sports (amongst 'cycling',
'running', 'swimming') with each element
corresponding to variable and unit.
Arguments to be passed to methods.