SearchSleepSeg: Find specific sleep segment

View source: R/SleepEstEachDay.R

SearchSleepSegR Documentation

Find specific sleep segment

Description

Obtain specific sleep segment based on day, indices, etc.

Usage

SearchSleepSeg(
  date,
  Y,
  idx_start,
  idx_end,
  NoPA_cut = 0.7,
  sleep_mins = 30,
  SI_i,
  tz = "GMT"
)

Arguments

date

date of interest

Y

vector containing validated sleep counts

idx_start

start index of sleep segment

idx_end

end index of sleep segment

NoPA_cut

percent of 0 counts to define NoPA segments

sleep_mins

threshold number of minutes to define sleep segment

SI_i

estimated sleep intervals based on sleep diary data

tz

timezone, default is GMT

Value

list of validated sleep segments


ActiSleep documentation built on June 22, 2024, 10:21 a.m.