wide_to_long: Convert Wide 1440+ data to Long

Description Usage Arguments Value Examples

View source: R/long_frag.R

Description

Convert Wide 1440+ data to Long

Usage

1
wide_to_long(x, id = "ID", visit = NULL)

Arguments

x

A data.frame of and ID variable, 1440 measurements, and an optional visit variable

id

column name/variable in x corresponding to an ID

visit

column name/variable in x corresponding to a visit. If not only one visit per id, set this to NULL

Value

A data.frame of long values

Examples

1
2
long_counts = wide_to_long(example_activity_data$counts, id = "ID",
visit = "visit")

muschellij2/fragmentation documentation built on May 27, 2019, 8:46 a.m.