Description Usage Arguments Value Author(s) Examples
Function returns IS, IV, RA, L5, M10 as well as L5 and M10 start times for multiple actigraphy files. The function also returns a plot for hourly grand averages across 24 hours.
1 | nparACT_base_loop(path, SR, cutoff = 1, plot = T, fulldays = T)
|
path |
Character string containing path to location of actigraphy files. Actigraphy files must contain a first column with a date/time vector, which must be of form |
SR |
Sampling rate in Hz. |
cutoff |
Can be used to define a cutoff for actigraphy data. Default value is |
plot |
If |
fulldays |
If |
Data frame containing IS, IV and RA values for each file. Besides this, L5 and M10 values are given along with the respective start times.
Christine Blume <christine.blume@sbg.ac.at> Nayantara Santhi <n.santhi@surrey.ac.uk> Manuel Schabus <manuel.schabus@sbg.ac.at>
1 2 3 4 5 6 7 8 9 | # example function nparACT_loop
data(sleepstudy)
name <- "sleepstudy_example"
newdir <- file.path(tempdir(),name)
dir.create(newdir, showWarnings = FALSE)
olddir <- setwd(newdir)
write.table(sleepstudy, file = "sleepstudy.txt", row.names=FALSE, col.names = FALSE)
r <- nparACT_base_loop(newdir, SR = 4/60)
setwd(olddir)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.