generate_postwake_times: Fill post-observation wake times

View source: R/data_sleeptimesformat.R

generate_postwake_timesR Documentation

Fill post-observation wake times

Description

The last wake moment is unlikely to also be the end of the series. This function fills constructs a tibble with the all times between the final wake episode and the end of the series, intervaled by 'expand_by' minutes

Usage

generate_postwake_times(simulationend, lastwake, expand_by = 5)

Arguments

simulationend

start of simulation

lastwake

first sleep in the sleep dataframe

expand_by

expand value

Value

returns expanded tibble containing sleep.id = NA (due to waking) and wake_status = T


humanfactors/FIPS documentation built on Aug. 24, 2023, 6:33 p.m.