read.actigraph.csv: Read in actigraph *.csv file

Description Usage Arguments Details Value See Also

View source: R/accelerate-reading.R

Description

Reads in an Actigraph (GT1M, ActiTrainer) csv file and returns an object of class "acc" that can be further processed with summary.acc etc.

Usage

1
2
3
4
5
6
7
8
read.actigraph.csv(
  file,
  DIR = "data",
  get.id = getID,
  preprocess = delete.zeros,
  .filter = FILTER,
  ...
)

Arguments

file

the file to read

DIR

folder - added to 'file' but can be missing

get.id

- function to extract ID from file name, eg. getID

preprocess

- function to preprocess data - either delete.zeros or reintegrate - or a custom function

.filter

- function to filter out implausible values

...

extra parameters are silently ignored

Details

For reading in older actigraph files in "dat" format. The main shortcoming of this format is ambiguity of date format - it is dependent on computer used to download the data. Therefore the newer format (agd) should be used when possible.

Value

an object (list) of class "acc"

See Also

read.actigraph.csv


lebatsnok/accelerate documentation built on Dec. 21, 2021, 9:47 a.m.