powered by
Find the proportion of values of x that are %out% of the vector y.
x
%out%
y
prop_out(x, y, na.rm = TRUE, ignore.case = FALSE)
The proportion of x absent in y.
A vector to check.
A vector to compare against.
logical; Should NA be ignored?
NA
logical; if FALSE, the pattern matching is case sensitive and if TRUE, case is ignored during matching.
FALSE
TRUE
mean(x %out% y)
Other counting wrappers: count_diff(), count_in(), count_na(), count_out(), na_in(), na_out(), na_rep(), prop_distinct(), prop_in(), prop_na(), what_in(), what_out()
count_diff()
count_in()
count_na()
count_out()
na_in()
na_out()
na_rep()
prop_distinct()
prop_in()
prop_na()
what_in()
what_out()
prop_out(c("VT", "NH", "ZZ", "ME"), state.abb)
Run the code above in your browser using DataLab