Skip to contents

Merges matching morning and evening entries for the same participant and date into a single row, prefixing morning columns with m_ and evening columns with e_.

Usage

diary_wide(x)

Arguments

x

A slumbr_study, slumbr_export, or plain long-format data frame.

Value

A data frame with one row per participant x date.

Examples

if (FALSE) { # \dontrun{
study <- read_study("exports/")
wide  <- diary_wide(study)
head(wide)
} # }