ggir.datatransform {postGGIR} | R Documentation |
Transform the data and merge all accelerometer files in the GGIR output
Description
An accelerometer file was transformed into wide data matrix, in which the rows represent available days and the columns including all timestamps for 24 hours. Further, the wide data was merged together.
Usage
ggir.datatransform(
outputdir,
subdir,
studyname,
numericID = FALSE,
sortByid = "newID",
f0 = 1,
f1 = 1e+06,
epochIn = 5,
epochOut = 600,
mergeVar = 1
)
Arguments
outputdir |
|
subdir |
|
studyname |
|
numericID |
|
sortByid |
|
f0 |
|
f1 |
|
epochIn |
|
epochOut |
|
mergeVar |
|
Value
mergeVar = 1 |
Six files were written to the specified sub-directory as follows, |
nonwearscore_studyname_f0_f1_Xs.xlsx |
Data matrix of nonwearscore, where f0 and f1 are the file index to start and finish with and Xs is the epoch size to which acceleration was averaged (seconds) in GGIR output. |
clippingscore_studyname_f0_f1_Xs.xlsx |
Data matrix of clippingscore |
lightmean_studyname_f0_f1_Xs.xlsx |
Data matrix of lightmean |
lightpeak_studyname_f0_f1_Xs.xlsx |
Data matrix of lightpeak |
temperaturemean_studyname_f0_f1_Xs.xlsx |
Data matrix of temperaturemean |
EN_studyname_f0_f1_Xs.xlsx |
Data matrix of EN |
mergeVar = 2 |
Two files were written to the specified sub-directory as follows, |
studyname_ENMO.dataf0_f1_Xs.xlsx |
Data matrix of ENMO, where f0 and f1 are the file index to start and finish with and Xs is the epoch size to which acceleration was averaged (seconds) in GGIR output. |
studyname_ANGLEZ.dataf0_f1_Xs.xlsx |
Data matrix of ANGLEZ |