Not intended for direct use by GGIR users. Adds first wake if it is missing in part 4 output as part of g.part5.
g.part5.addfirstwake(ts, summarysleep, nightsi, sleeplog,
ID, Nepochsinhour, SPTE_end)
Data.frame ts updated with first wakeup time
Data.frame object as passed on from g.part5
Data.frame object as passed on from g.part5 with sleep summary information from g.part4.
Vector with indices for the nights
Data.frame with all sleeplog information
Participant ID
Number of epochs in an hour
Sleep period time end index
Vincent T van Hees <v.vanhees@accelting.com>