View source: R/data_sleeptimesformat.R
generate_presleep_times | R Documentation |
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
generate_presleep_times(simulationstart, firstsleep, expand_by = 5)
simulationstart |
start of simulation |
firstsleep |
first sleep in the sleep dataframe |
expand_by |
expand |
returns expanded tibble containing sleep.id = NA (due to waking) and wake_status = T
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.