compareSets | R Documentation |
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.
compareSets(
x,
y,
subject = "Values",
xname = deparse(substitute(x)),
yname = deparse(substitute(y))
)
x |
first vector |
y |
second vector |
subject |
name of objects to be compared that will appear in the
message. Default: |
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 |
compareSets(1:10, 3:13)
compareSets(1:10, 3:13, "numbers", "set 1", "set 2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.