
Last chance! 50% off unlimited learning
Sale ends in
Last chance! 50% off unlimited learning
Sale ends in
Impute speeds of 0 during small breaks within a session.
impute_speeds(
session_data,
from_distances = TRUE,
lgap = 30,
lskip = 5,
m = 11,
sport = "cycling",
units = NULL
)imputeSpeeds(
session_data,
from_distances = TRUE,
lgap = 30,
lskip = 5,
m = 11,
sport = "cycling",
units = NULL
)
A multivariate zoo
object with imputed observations:
0 for speed, last known position for latitude, longitude and altitude,
NA for all other variables. Distances are calculated based on speeds after imputation.
A multivariate zoo
object with
observations of either distance or speed (named Distance or Speed,
respectively).
Logical. Should the speeds be calculated from the distance recordings instead of taken from the speed recordings directly?
Time in seconds corresponding to the minimal sampling rate.
Time in seconds between the last observation before a small break and the first imputed speed or the last imputed speed and the first observation after a small break.
Number of imputed observations in each small break.
What sport does sessions_data
contain data of? Either
'cycling'
(default), 'running'
, 'swimming'
.
Units of measurement.
Kosmidis, I., and Passfield, L. (2015). Linking the Performance of Endurance Runners to Training and Physiological Effects via Multi-Resolution Elastic Net. ArXiv e-print arXiv:1506.01388.
Frick, H., Kosmidis, I. (2017). trackeR: Infrastructure for Running and Cycling Data from GPS-Enabled Tracking Devices in R. Journal of Statistical Software, 82(7), 1--29. doi:10.18637/jss.v082.i07