-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Hi,
Recent researches suggests that the 5-minute standard for sleep may not be able to distinguish well between light and deep sleep, and that it is not possible to obtain accurate results for sleep homeostasis. So, we want to redefine the sleep standard by changing the sleepr function in rethomics.
According the rethomics manuals, when load ETHOSCOPE data, we use:
system.time(dt <- load_ethoscope(metadata,
reference_hour=9.0,
FUN = sleepr::sleep_annotation,
cache = "......",
verbose=FALSE))
We tried to change the min_time_immoblie when load ETHOSCOPE:
FUN= sleepr::sleep_annotation(data, min_time_immobile = 600)
but we don't know how to define data,table
or tried to rerun sleepr function analysis after load ETHOSCOPE data by using default 5 min rule.
sleep_dt <- sleep_annotation(dt, min_time_immobile = 600)
but error message showed: data must have a column t.
So, how can I change the default value of sleepr of sleep_annotation: (min_time_immobile = 300) to achieve changes in the standard for mins of inactivity?
Sincerely look forward to your help!