First of all, thank you developers for developing GGIR package so that users like me can analyze accelerometer data much more easily.
I am new to GGIR package and just tried processing accelerometer data with GGIR recently. But I encountered the error that says
The accelerometer data I used was in csv format and the columns and rows are shown as the attached image. Also, I used the R code written as below to process the data.
Please note that P11 indicates data of the participant number 11.
GGIR(datadir = "C:/Users/joh22/Downloads/joh22/KOMPAN/HABITUS_package/Test_data/P11",
outputdir = "C:/Users/joh22/Downloads/joh22/KOMPAN/HABITUS_package/output",
dataFormat = "actigraph_csv",
mode = 1:5,
overwrite = FALSE,
do.report = c(2, 4, 5),
windowsizes = c(1, 900, 3600),
threshold.in = AccThresholds[1],
threshold.mod = AccThresholds[2],
threshold.vig = AccThresholds[3],
includedaycrit = 10,
includenightcrit = 10,
acc.metric = "NeishabouriCount_x",
HASPT.algo = "NotWorn",
HASIB.algo = "NotWorn",
boutdur.mvpa = 10, # note that this can be a vector
boutdur.in = 30, # note that this can be a vector
boutdur.lig = 10, # note that this can be a vector
extEpochData_timeformat = "%m/%d/%Y %H:%M:%S",
do.neishabouricounts = TRUE,
do.visual = TRUE,
visualreport = FALSE,
outliers.only = FALSE,
save_ms5rawlevels = TRUE,
ignorenonwear = FALSE,
HASPT.ignore.invalid = FALSE,
save_ms5raw_without_invalid = FALSE)
I will greatly appreciate if anyone can help me solving this issue.
Thank you.