View source: R/design_structure.R
| merge_studies | R Documentation |
Merge study data by identifiers
merge_studies(x, y, by, join = c("inner", "full", "left"))
x, y |
Base data frames, or |
by |
Identifier variables shared by both inputs. A character vector of at least one name present in both. |
join |
Join type, one of |
A simulab_sim base data.frame containing the merged data, sorted
by by as merge() leaves it, with unmatched cells filled with NA under
the "full" and "left" joins.
x <- data.frame(id = 1:5, baseline = 1:5)
y <- data.frame(id = 1:5, outcome = 6:10)
merge_studies(x, y, by = "id")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.