merge_overwrite: merge a data.table x and y (left join) and overwrite the...

View source: R/lib_table.R

merge_overwriteR Documentation

merge a data.table x and y (left join) and overwrite the values in x with those in y for the matching columns

Description

merge a data.table x and y (left join) and overwrite the values in x with those in y for the matching columns

Usage

merge_overwrite(x, y, by = NULL, by.x = NULL, by.y = NULL)

Arguments

x

data.table

y

data.table

by

A vector of shared column names in x and y to merge on. This defaults to the shared key columns between the two tables. If y has no key columns, this defaults to the key of x

by.x

Vectors of column names in x and y to merge on.

by.y

Vectors of column names in x and y to merge on.


jorritvm/jrutils documentation built on Feb. 14, 2023, 11:33 p.m.