uniqueMerge: verges dataframes avoiding duplicates

Description Usage Arguments Details Author(s)

View source: R/uniqueMerge.R

Description

Merges data frames or data tables by columns without all possible combination of rows. So if there are N rows on a table that matches with M rows on the other, this function would only merge the first with the first, second with second, and go on... Finaly it would be |M-N| not merged rows.

Usage

1
2
uniqueMerge(x,y,by=intersect(names(x),names(y)),
by.x=by,by.y=by,all=T,all.x=all,all.y=all,...)

Arguments

x, y

data frames, or data tables to be coerced to one.

by, by.x, by.y

specifications of the columns used for merging.

all, all.x, all.y

logicals, TRUE by default. Adds not matching rows to the output filling the fields with NAs

...

arguments to be passed to or from methods. As sort, suffixes or incomparables.

Details

This function calls merge so it admits all the ways to use that function but without the combination for matching rows.

Author(s)

Daniel Fischer


danielfm123/dftools documentation built on July 17, 2021, 1 p.m.