
Last chance! 50% off unlimited learning
Sale ends in
merge_df(x1, x2, id = NULL)
merge(x1, x2, all = TRUE)
, however, unlike base
merge
, this function preserves value and
variable labels. If matching columns have different value
label attributes, attributes from first data frame will be
used. For more details on the join operation, see
'Details' in merge
on all
-argument.library(dplyr)
data(efc)
x1 <- efc %>% select(1:5) %>% slice(1:10)
x2 <- efc %>% select(3:7) %>% slice(1:10)
mydf <- merge_df(x1, x2)
mydf
str(mydf)
library(sjPlot)
view_df(mydf)
Run the code above in your browser using DataLab