recip_table: Count number of unique elements shared between two vectors....

recip_tableR Documentation

Count number of unique elements shared between two vectors. Option to check whether element order is identical.

Description

see tidyExt vignette This function requires tidyExt::recip_order() to be loaded.

Usage

recip_table(x_vec, y_vec, check_order = FALSE, print_matches = FALSE)

Arguments

x_vec

vector of elements of any type

y_vec

vector of elements of any type

Value

A tibble, and an optional message.

Examples

recip_table(mtcars$mpg, mtcars$mpg[1:5])
recip_table(mtcars$mpg, sort(mtcars$mpg), check_order = TRUE)
recip_table(mtcars$mpg[1:5], mtcars$mpg)
recip_table(mtcars$mpg, mtcars$mpg)
recip_table(mtcars$mpg, mtcars$cyl)


bansell/tidyExt documentation built on July 12, 2024, 12:58 p.m.