| generate_units {trackeR} | R Documentation | 
Generate and set base units.
Description
Generate and set base units.
Usage
generate_units(variable, unit, sport, ...)
generateBaseUnits(variable, unit, sport, ...)
Arguments
variable | 
 A vector of variables with user-specified units.  | 
unit | 
 A vector with the user-specified units, corresponding to variable (see details).  | 
sport | 
 A vector of sports (amongst   | 
... | 
 Currently not used.  | 
Details
The available units are
variables
latitudeandlongitudewith unitdegree(default)variables
altitude,distancewith unitm(default),km,miorftvariable
heart_ratewith unitbpm(default)variable
speedwith unitm_per_s(default),km_per_h,ft_per_min,ft_per_sormi_per_hvariable
cadence_runningwith unitsteps_per_min(default; running only)variable
cadence_cyclingwith unitrev_per_min(default; cycling only)variable
powerwith unitW(Watt; default) orkW(cycling only)variable
temperaturewith unitC(Celsius; default) orF
Note that generate_units checks if the supplied combinations
of variable and sport are valid.
generate_units will not check if any of the supplied units
are correct for the corresponding combination of variable
and sport.