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

Description Usage Arguments Details Value See Also

View source: R/accelerate-reading.R

Description

Reads in an Actigraph (GT1M, ActiTrainer) dat 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
9
read.actigraph.dat(
  file,
  DIR,
  id.prefix = "",
  preprocess = delete.zeros,
  dateformat = c("month", "day", "year"),
  get.id = getID,
  .filter = FILTER
)

Arguments

file

the file to read

DIR

folder - added to 'file' but ignored if 'file' contains '/'

id.prefix

- prefix to be added to ID (this argument will be removed in future versions as the same functionality can be achieved with writing acustom get.id function)

preprocess

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

dateformat

- c("month", "day", "year") - order in which each element occurs in the date string

get.id

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

.filter

- function to filter out implausible values

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.