id_prepost: id_prepost()

Description Usage Arguments Value Examples

Description

This is a helper function that identifies 'pre' and 'post' test based on the date the test was taken.

Usage

1

Arguments

df

dataframe: a dataframe containing longitudinal data.

Value

dataframe

Examples

1
2
3
4
5
tp <- laycUtils::load_txt('./my_data_folder/touchpoints.txt')
tp <- laycUtils::format_data(tp)
tp <- tp[tp$tp_name == "jrt pre-/post test", ]

id_prepost(df = tp)

thelayc/laycOutcomes documentation built on May 31, 2019, 9:16 a.m.