Learn R Programming

GGIR (version 3.2-0)

g.part5.addfirstwake: Adds first wake if it is missing in part 4 output.

Description

Not intended for direct use by GGIR users. Adds first wake if it is missing in part 4 output as part of g.part5.

Usage

g.part5.addfirstwake(ts, summarysleep, nightsi, sleeplog,
  ID, Nepochsinhour, SPTE_end)

Value

Data.frame ts updated with first wakeup time

Arguments

ts

Data.frame object as passed on from g.part5

summarysleep

Data.frame object as passed on from g.part5 with sleep summary information from g.part4.

nightsi

Vector with indices for the nights

sleeplog

Data.frame with all sleeplog information

ID

Participant ID

Nepochsinhour

Number of epochs in an hour

SPTE_end

Sleep period time end index

Author

Vincent T van Hees <v.vanhees@accelting.com>