| count_diff | R Documentation |
Find the length of the set of difference between x and y vectors.
count_diff(x, y, ignore.case = FALSE)
x |
A vector to check. |
y |
A vector to compare against. |
ignore.case |
logical; if |
sum(x %out% y)
The number of unique values of x not in y.
Other counting wrappers:
count_in(),
count_na(),
count_out(),
na_in(),
na_out(),
na_rep(),
prop_distinct(),
prop_in(),
prop_na(),
prop_out(),
what_in(),
what_out()
# only unique values are checked
count_diff(c("VT", "NH", "ZZ", "ZZ", "ME"), state.abb)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.