The mapping between elements of 2 columns can have 4 different relationships: one - one, one - many, many - one, many - many. This function returns a view of the mappings by row, and prints a summary to the console.
confirm_mapping(.data, col1, col2, view = T)
a data frame
column 1
column 2
View results?
A view of mappings. Also returns the view as a data frame invisibly.
iris %>% confirm_mapping(Species, Sepal.Width, view = FALSE)
#> many - many mapping between Species and Sepal.Width