vjoin: Verbose Join

Description Usage Arguments Value Examples

View source: R/joins.R

Description

Join with diagnostic output. Joins are implemented via dplyr join functions.

Usage

1
vjoin(x, y, by, join = "left", wt = NULL, flag_source = FALSE, ...)

Arguments

x, y

Dataframes to join.

by

Character vector giving the name(s) of columns to be used for merging.

join

String specifying type of join: valid join types are "inner", "left", "right", "full", "semi" and "anti".

wt

Optional weighting variable (as character) used weight match rate diagnostics.

flag_source

Logical, whether to add two variables (.in_x and .in_y) flagging source(s) for each case in result.

...

Additional parameters passed to dplyr join function.

Value

Merged data frame.

Examples

1
2
3
x <- data.frame(a = LETTERS[1:10], b = 1:10, stringsAsFactors = F)
y <- data.frame(a = LETTERS[6:15], c = 6:15, stringsAsFactors = F)
vjoin(x, y, by = "a", join = "full")

rebelrebel04/xplor documentation built on May 27, 2019, 4:01 a.m.