tidy_multi_meas_data {lifelogr}R Documentation

Tidy daily data.

Description

Tidy daily data with multiple measures.

Usage

tidy_multi_meas_data(data)

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

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)

[Package lifelogr version 0.1.0 Index]