Vincent,
Thank you so much, this has been very helpful. I reformatted the sleep diary that I have into the a form that is in the vignette. After changing the code within the GGIR shell to incorporate the sleep log, I have not been able to get the code to run. I am getting errors that read:
Error in if (WKN2 > SLN2) { : missing value where TRUE/FALSE needed
In addition: Warning message:
In g.loadlog(loglocation, coln1, colid, nnights, sleeplogidnum) :
NAs introduced by coercion
There are a fair number of nights where the participants in my study failed to record sleep/wake times, so there are a handful of NA's in the sleep log. Could that be causing the issue? Do you have any advice on how to deal with this?
Thanks,
Karl Brown