Description Usage Arguments Value Examples
View source: R/soccerVelocity.R
Compute instantaneous distance moved (in metres), speed (in metres per second), and direction (in radians) between subsequent frames in a dataframe of x,y-coordinates.
1 | soccerVelocity(dat)
|
dat |
dataframe containing unnormalised x,y-coordinates |
a dataframe with columns 'dist'
, 'speed'
, and 'direction'
added
1 2 3 4 | data(tromso)
# calculate distance, speed, and direction for \code{tromso} dataset
soccerVelocity(tromso)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.