agg_sleep_weekday {lifelogr}R Documentation

A function to preprocess sleep data for the Person object.

Description

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).

Usage

agg_sleep_weekday(person)

Arguments

person

An instance of the Person class

Value

A tidy data frame with the columns weekday, measure, and hours

Examples

data(EX)
agg_sleep_weekday(person = EX)


[Package lifelogr version 0.1.0 Index]