smart_merge | R Documentation |
Merges two data.frames assuming they have at least one shared column name
smart_merge(x, y, mess = FALSE, ...)
x |
A data.frame |
y |
A data.frame |
mess |
Default to |
... |
arguments passed to merge |
A merged data.frame
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.