smooth_activity: Smooth activity data

Description Usage Value Examples

View source: R/smooth_activity.R

Description

smooth_activity_data smoothes an activity variable by calculating a moving average with window width specified by act.width_ma.

Usage

1
smooth_activity(activity, act, act.width_ma, update_NA = TRUE)

Value

A data.table

Examples

1
2
3
4
activity_data <- smooth_activity_data(activity = activity_data,
                                          act = 'act_xy',
                                          act.width_ma = 2,
                                          update_NA = FALSE)

maxkroeschel/activitytools documentation built on Jan. 15, 2019, 5:32 a.m.