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

View source: R/g.part5.addfirstwake.R

g.part5.addfirstwakeR Documentation

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)

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

Value

Data.frame ts updated with first wakeup time

Author(s)

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


GGIR documentation built on Oct. 17, 2023, 1:12 a.m.