confirm_overlap: Confirm Overlap

Description Usage Arguments Value Examples

View source: R/confirm_overlap.R

Description

Prints a venn-diagram style summary of the unique value overlap between two columns and also invisibly returns a dataframe that can be assigned to a variable and queried with the overlap helpers. The helpers can return values that appeared only the first col, second col, or both cols.

Usage

1
2
3
4
5
6
7
confirm_overlap(vec1, vec2, return_tibble = F)

co_find_only_in_1(co_output)

co_find_only_in_2(co_output)

co_find_in_both(co_output)

Arguments

vec1

vector 1

vec2

vector 2

return_tibble

logical. If TRUE, returns a tibble. otherwise by default returns the database invisibly to be queried by helper functions.

co_output

dataframe output from confirm_overlap

Value

tibble. overlap summary or overlap table

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
confirm_overlap(iris$Sepal.Width, iris$Sepal.Length) -> iris_overlap

iris_overlap

iris_overlap %>%
co_find_only_in_1()

iris_overlap %>%
co_find_only_in_2()

iris_overlap %>%
co_find_in_both()

validata documentation built on Oct. 5, 2021, 9:08 a.m.