longform_pairs: Convert short paired data to long paired data.

Description Usage Arguments Value Examples

Description

This function takes in a data frame containing short paired data with one row / pair and outputs one row / ENROLLID in the pair. If the data does not contain a column named 'pair_id' one will be added with a unqiue number for each pair. This is currently groups by pair_id

Usage

1
longform_pairs(df, columns = c("ENROLLID", "onset", "gc_ul", "sequenced"))

Arguments

df

A data frame with obseravtions to be split

columns

columns to be added. They must be equal to names that already exist in every way except lacking either a 1 or a 2 at the end.

Value

the a data frame with a row for each ENROLLID

Examples

1
2
3
one_meta<-only_one(small_meta)
tp<-getting_tp(one_meta)
longform_pairs(tp)

jtmccr1/HIVEr documentation built on May 29, 2019, 1:50 a.m.