smart_merge: smart_merge

View source: R/basic.R

smart_mergeR Documentation

smart_merge

Description

Merges two data.frames assuming they have at least one shared column name

Usage

smart_merge(x, y, mess = FALSE, ...)

Arguments

x

A data.frame

y

A data.frame

mess

Default to FALSE. Otherwise a message is printed.

...

arguments passed to merge

Value

A merged data.frame

Examples


aa = smart_df(a = c(1,2,3),b = c("a","b","c"),c = c(4,5,6))
bb = smart_df(a = c(2,4,5),b = c("b","d","e"),d = c("alpha","beta","gamma"))
smart_merge(aa,bb,all.x = TRUE)
smart_merge(aa,bb,all.y = TRUE)
smart_merge(aa,bb,all = TRUE)


pllittle/smarter documentation built on Feb. 27, 2025, 1:06 a.m.