change_units: Generic function for changing the units of measurement

View source: R/trackeR.R

change_unitsR Documentation

Generic function for changing the units of measurement

Description

Generic function for changing the units of measurement

Usage

change_units(object, variable, unit, sport, ...)

changeUnits(object, variable, unit, sport, ...)

Arguments

object

The object of which the units of measurement are changed.

variable

A vector of variables whose units are to be changed.

unit

A vector with the units, corresponding to variable.

sport

A vector of sports (among 'cycling', 'running', 'swimming') with each element corresponding to variable and unit.

...

Arguments to be passed to methods.


hfrick/trackeR documentation built on Feb. 3, 2024, 2:30 p.m.