Function to convert data into sleep period matrix part of g.part4.R. Not intended for direct use by package user
g.create.sp.mat(nsp,spo,sleepdet.t,daysleep=FALSE)
spo matrix with start and end of each sleep period
calendardate date corresponding to the day on which the night started
item wdayname weekdayname
Integer indicating the number of sleep periods
Empty matrix with overview of sleep periods, 5 columns and as along as nps
Part of detected sleep from g.sib.det for one night and one sleep definition
Boolean to indicator whether this person woke up after noon (daysleeper)
Vincent T van Hees <v.vanhees@accelting.com>