edc_left_join {EDCimport} | R Documentation |
Join within the EDCimport framework
Description
Perform a join with default by
to the Subject ID and default suffix to the
name of the y
dataset. See [dplyr::mutate-joins]
for the description of the
join logic.
Usage
edc_left_join(
x,
y,
by = NULL,
suffix = NULL,
cols = everything(),
remove_dups = FALSE
)
Arguments
x , y |
Data frames to join |
by |
The key to join on, as character. Defaults to |
suffix |
The disambiguation suffix. Defaults to the actual name of the |
cols |
<tidy-select> The columns to select in |
remove_dups |
Whether to remove columns in |
Value
a dataframe
Examples
db = edc_example()
load_database(db)
data1$common = data2$common = "Common"
x = enrol %>%
edc_left_join(data2) %>%
edc_right_join(data1)
#crfname get a suffix, common
names(x)
[Package EDCimport version 0.6.0 Index]