join_with_check: Joining two data frames

Description Usage Arguments Value

Description

Simple routine designed to find out (and report) whether two data frames have unique combinations of values of common variables and whether all rows in x has pair(s) in y and vice versa before performing full join.

Usage

1
2
3
join_with_check(x, y, xDescription = "x", yDescription = "y",
  xCheckAllMatchesY = TRUE, yCheckAllMatchesX = TRUE,
  rowsOrObservations = "rows")

Arguments

x

data frame

y

data frame

xDescription

optionally a description of what is x (for purpose of providing informative warninig message)

yDescription

optionally a description of what is y (for purpose of providing informative warninig message)

xCheckAllMatchesY

logical value (TRUE or FALSE) - should function check whether all rows in x match some row in y

yCheckAllMatchesX

logical value (TRUE or FALSE) - should function check whether all rows in y match some row in x

rowsOrObservations

"rows" or "observations" (abbreviations "r" and "o" are accepted) - indicates how numbers of rows that do not match should be reported: "rows" is suitable for data coming directly from input files (adds 1 to reported numbers of rows to account that there is also a header row) while "observations" for data that has already been processed

Value

Data frame returned by full_join(x, y).


ZajacT/ASIA1 documentation built on May 30, 2019, 4 p.m.