Dear GGIR community,
I have 3 GeneActiv accelerometer files, all from the same accelerometer, that failed to calibrate with calib_status = "recalibration not done because not enough points on all sides of the sphere". As recommended in the book, I then used parameter backup.cal.coef to specify calibration coefficients from an accelerometer run from the same accelerometer where there was no calibration error (I have 2 such files to try with where the same watch calibrated fine).
However, no matter what I try, I keep getting the error: "Error in filesummary[vi + 1] <- C$QCmessage : replacement has length zero" in Part 2, and I am unsure what this means or how to fix it. I don't believe that any of the files have too much non-wear time, as their plots_to_check_data_quality from the original run show plenty wear time with regular temperature oscillations, just nothing for the acceleration values (see screenshot below for example).
I have attached the csv for the calibration coefficients that I used, as well as my GGIR code. I have also tried setting row.names to false when creating the csv, in case the setup of the csv is wrong, but I receive the same error. I am getting the above error for no matter which of the 2 possible backup calibration coefficient csvs I use, or which of the 3 failed files I try them on. This makes me think there is something wrong with my set up. If anyone is familiar with this error or has successfully used backup.cal.coef when calibration fails and is willing to share their code/insights, that would be a great help.
R version 4.4.2 (2024-10-31)
GGIR version 3.1-5
Thank you for your time!
Joanna

.