Description Usage Arguments Value Author(s)
Merge data from different visits. Set at least two cleaned visit data files.
1 | merge_visits(v1, v2, v3 = NULL, mode = c("long", "wide"), all.patients = FALSE)
|
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 |
a data frame with merged visit 1 and 2 as specified in the parameters
R.C.S
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.