generate_presleep_times: Fill pre-observation wake times

View source: R/data_sleeptimesformat.R

generate_presleep_timesR Documentation

Fill pre-observation wake times

Description

The first sleep is unlikely to also be the start of the mission simulation Thus, this function fills the start of the tibble with the all times between The mission start time and the first instance of sleep, intervaled by X minutes

Usage

generate_presleep_times(simulationstart, firstsleep, expand_by = 5)

Arguments

simulationstart

start of simulation

firstsleep

first sleep in the sleep dataframe

expand_by

expand

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.