| count_in | R Documentation |
Count the total values of x that are %in% the vector y.
count_in(x, y, na.rm = TRUE, ignore.case = FALSE)
x |
A vector to check. |
y |
A vector to compare against. |
na.rm |
logical; Should |
ignore.case |
logical; if |
sum(x %out% y)
The sum of x present in y.
Other counting wrappers:
count_diff(),
count_na(),
count_out(),
na_in(),
na_out(),
na_rep(),
prop_distinct(),
prop_in(),
prop_na(),
prop_out(),
what_in(),
what_out()
count_in(c("VT", "NH", "ZZ", "ME"), state.abb)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.