compareSets: Compare the values in two vectors

View source: R/dataFrame.R

compareSetsR Documentation

Compare the values in two vectors

Description

Prints the result of comparing the values of two vectors with each other (which values are in the first vector but not in the second one and which values are in the second vector but not in the first one) on the screen.

Usage

compareSets(
  x,
  y,
  subject = "Values",
  xname = deparse(substitute(x)),
  yname = deparse(substitute(y))
)

Arguments

x

first vector

y

second vector

subject

name of objects to be compared that will appear in the message. Default: "Values".

xname

optional name of the first vector that will be used in the message

yname

optional name of the second vector that will be used in the message

Examples

compareSets(1:10, 3:13)
compareSets(1:10, 3:13, "numbers", "set 1", "set 2")


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.