process.acc: Processing of accelerometer data files

Description Usage Arguments Details

View source: R/process.acc.R

Description

Returns a data.frame with Accelerometer data summarised to a defined epoch

Usage

1
2
process.acc(accfile, participant.id, cutoff.method, epoch.length, acc.model,
  raw = FALSE, samples.per.second = 30, nonwear = TRUE)

Arguments

accfile

The accelerometer file to merge, a .csv

participant.id

A unique identifier for the participant

cutoff.method

1,2 or 3

1=no cutoff, keep all data

2=take 7 days from the first point

3=if there are over 8 days, trim the first then take 7 days, if there are 8 days, trim the first and keep the rest, if there are 7 or less days, keep them all

epoch.length

epoch.length in seconds, currently, 5, 10 or 15 seconds only tested

1= need to account for BST, 0= do not

acc.model

The accelerometer model. Currently "Actigraph" and "Actiheart" are valid

raw

Boolean, if TRUE you are using raw data, not counts, must be exported as .csv, not the .gt3x, or .agd files

samples.per.second

The sampling rate of raw data if used, default is 30Hz, adjust if required

Details

Currently only works for Actigraph or Actiheart accelerometer files, If you need other types contect the author , they can be included


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