ema_acc: Returns a datatable to merge accelerometer data back into EMA...

Description Usage Arguments Value Examples

View source: R/ActiPro.R

Description

Returns a datatable to merge accelerometer data back into EMA data

Usage

1
2
3
ema_acc(ema_file, activity_data, time_stubs = c("15", "30", "60", "120"),
  activity_types = c("VALID", "NONVALID", "MOD", "VIG", "SED", "LIGHT",
  "MVPA", "MVPA_BOUT", "ACTIVITY"))

Arguments

ema_file

A csv file with three columns, id, fulltime, and index

activity_data

An acc_ageadjusted data.table

time_stubs

Time windows to use

activity_types

Types of activity from acc_ageadjusted data.table

Value

A data.table with windows appended to ema_stubs file

Examples

1
ema_acc_table <- ema_acc[ema_stubs, activity_data]

eldinidle/ActiPro documentation built on June 26, 2018, 2:35 p.m.