Hi all,
I am using advanced sleep log to process data. However, I met some warnings:
Warning 1:
1: In `[<-.factor`(`*tmp*`, iseq, value = "-16.7236111111111") :
invalid factor level, NA generated
The warning is similar as Sidney Donzella described and posted. I used the following codes but GGIR can load the file without problem:
library(GGIR)
sleeplog = g.loadlog(loglocation="V:/.../v2/sleep_log_v2.csv",coln1=4, colid=1,nnights=50,sleeplogidnum=FALSE, sleeplogsep=",", meta.sleep.folder = "V:/.../meta/ms3.out")
print(head(sleeplog)
I also checked the ID names, they were the same as what part 2 summary showed. I wonder if anyone can give me some suggestion to fix the problem.
Warning 2:
41: In g.part4_extractid(idloc, fname = fnames[i], dolog, ... :
Sleeplog id is stored as format: 1020RAW, while
code expects format: 1032RAW
42: In `[<-.factor`(`*tmp*`, iseq, value = "1032RAW") :
invalid factor level, NA generated
I am confused by this warning and not sure what it means . Can anyone help me about it as well?
Thank you very much.
Sincerely,
Julia