rollav.calc: Calculate rolling averages from a dataset

Description Usage Arguments Details

View source: R/rollav.calc.R

Description

Takes a merged gps/acc dataset and returns the same dataset with added rolling average variables

Usage

1
rollav.calc(dataset, acc = TRUE, gps = TRUE)

Arguments

dataset

A merged gps/acc dataset

acc

whether there is accelerometer data, default = TRUE

gps

whether there is GPS data, default=TRUE

Details

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


dprocter/modeid documentation built on May 19, 2019, 8:21 a.m.