merge_visits: Merge data from different visits. Set at least two cleaned...

Description Usage Arguments Value Author(s)

Description

Merge data from different visits. Set at least two cleaned visit data files.

Usage

1
merge_visits(v1, v2, v3 = NULL, mode = c("long", "wide"), all.patients = FALSE)

Arguments

v1

data frame resulted from clean_v1

v2

data frame resulted from clean_v2

v3

data frame resulted from clean_v3 ; Default is = NULL

mode

select "long" or "wide" for different merge options. If a single line for each subject is desired = "wide". If a line for each visit is desired ; = "long"

all.patients

Default = FALSE. If TRUE is selected, all patients with visit 1 will be merged, and NA values will be inputted in specific visit 2 variables

Value

a data frame with merged visit 1 and 2 as specified in the parameters

Author(s)

R.C.S


rafaelsommer1/emocempr documentation built on Aug. 31, 2020, 4:38 p.m.