Description Usage Arguments Details
Takes a merged gps/acc dataset and returns the same dataset with added rolling average variables
1 | rollav.calc(dataset, acc = TRUE, gps = TRUE)
|
dataset |
A merged gps/acc dataset |
acc |
whether there is accelerometer data, default = TRUE |
gps |
whether there is GPS data, default=TRUE |
Here we assume you have processed accelerometer data using process.acc
,
merged it to GPS data using gps.acc.merge
, and added variables called near.train,
dist.next.min and dist.last.min, possibly using near.train
and
distance.moved
This function will then take that dataset, and output the same dataset with the rolling averages neccessary to fit the model in Procter et al. 2018 added to it
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.