safe_join: safe left join

Description Usage Arguments Details Value

Description

safe_join performs a dplyr left_join, checking for common errors and warning when matches are not found.

Usage

1
safe_join(x, y, by = NULL, return_errors = FALSE, ...)

Arguments

x

Data frame

y

Data frame

by

Key(s) to join by. Required.

return_errors

Set to TRUE to return error dataset

...

Other parameters sent to dplyr

Details

safe_join performs the following checks:

1. Checks that key is unique in df2

2. Reports that matches not found in df1 or df2 (Corresponding to _merge == 1)

3. Checks if non-key columns exist in both datasets

Value

Joined dataset


bjornerstedt/assist documentation built on May 12, 2019, 9:26 p.m.