# NOT RUN {
data(capreotf)
## computes the average speed of the roe deer in a moving window of width
## equal to 60 minutes
toto <- sliwinltr(capreotf, function(x) mean(x$dist/x$dt, na.rm = TRUE),
step = 30, type = "time", units = "min")
## zoom before the peak
head(toto[[1]])
plot(toto[[1]][1:538,], ty="l")
# }
Run the code above in your browser using DataLab