Description Usage Arguments Details Value See Also
View source: R/accelerate-reading.R
Reads in an Actigraph (GT1M, ActiTrainer) dat file and returns an object of class "acc" that can be further processed with summary.acc etc.
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
)
|
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 |
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.
an object (list) of class "acc"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.