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

Description Usage Arguments Value

Description

Returns a datatable to merge accelerometer data back into EMA data

Usage

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

Arguments

ema_file

A csv file with three columns, id, fulltime, and index in that specific order

activity_data

An acc_ageadjusted data.table

time_stubs

Time windows to use

activity_types

Types of activity from acc_ageadjusted data.table

cut_dataset_start

the number of timea to split the ema dataset, this might be needed for very large studies or slow computers

Value

A data.table with windows appended to ema_stubs file


eldinidle/ActiPro documentation built on July 1, 2020, 2:41 p.m.