tidy_multi_meas_data: Tidy daily data.

Description Usage Arguments Value Examples

View source: R/viz_daily.R

Description

Tidy daily data with multiple measures.

Usage

1

Arguments

data

Data frame or tibble with a column named 'date' and other columns of interest.

Value

Tidy tibble with the columns date, measures, and value.

Examples

1
2
3
4
5
a <- tibble::tibble(date = 
         lubridate::ymd("1970-01-01", "1970-01-02", "1970-01-03"), 
         sleepDurationHrs = c(7.5, 8.0, 7.9), 
         minAsleepHrs = c(7.4, 7.0, 7.7))
tidy_multi_meas_data(a)

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