act_join: Modifier of tidyverse joins to return only unique 1-to-1...

View source: R/act_join.R

act_joinR Documentation

Modifier of tidyverse joins to return only unique 1-to-1 joins or a list of dataframes serving for join 'diagnostics'

Description

Modifier of tidyverse joins to return only unique 1-to-1 joins or a list of dataframes serving for join 'diagnostics'

Usage

act_join(x, y, type = "left_join", out = "pipe", ...)

Arguments

x

a dataframe to join

y

another dataframe to join

type

type of join to perform (in quotes). Options are "left_join" (default), "inner_join", "full_join", "semi_join", and "right_join". See separate help pages for these functions to determine which is most appropriate

out

output desired (in quotes). "pipe" (default) returns a single dataframe containing only perfect 1-to-1 matches. "list" returns a list of dataframes containing all 'diagnostic' categories (1-to-1, rows in x duplicated, rows in y duplicated, unmatched observations from x, unmatched observations from y)

...

passed to join function of choice

Value

Dependent on 'out' parameter. See above

Examples

test <- act_join(x, y, by = c("param1" = "param1", "param2" = "param2"))


deansayre/Rtesunate documentation built on July 25, 2024, 7:22 p.m.