agg_sleep_weekday {lifelogr} | R Documentation |
Preprocesses data to be used by the plot_sleep_weekday() function. Specifically, it calculates the sleep duration and time asleep for each day of the week (in hours).
agg_sleep_weekday(person)
person |
An instance of the Person class |
A tidy data frame with the columns weekday, measure, and hours
data(EX)
agg_sleep_weekday(person = EX)