agg_sleep_weekday: A function to preprocess sleep data for the Person object.

Description Usage Arguments Value Examples

View source: R/viz_sleep.R

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

1

Arguments

person

An instance of the Person class

Value

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

Examples

1
2

lifelogr documentation built on May 2, 2019, 6:11 a.m.