merge_dupUpdate | R Documentation |
This is an extended function for merge
function by updating values for duplicate
column for the first, second or both tables.
merge_dupUpdate(x, y, by, updateDup, ...)
## S4 method for signature 'data.table,data.table,character,logical'
merge_dupUpdate(x, y, by, updateDup, ...)
## S4 method for signature 'data.table,data.table,character,missing'
merge_dupUpdate(x, y, by, updateDup, ...)
x |
data.table, The first table for merging. |
y |
data.table, The second table for merging. |
by |
character, The key to merge two tables. |
updateDup |
logical, Specifies whether update duplicate column in merged table when its information is
available in y table, which means update from the second table.
If missing, the function takes |
... |
see |
A merged table without duplicate columes. A warning message is given if the duplicate column has different values.
Yong Luo
merge
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.