prop_in {k5} | R Documentation |
Proportion in
Description
Find the proportion of values of x
that are %in%
the vector y
.
Usage
prop_in(x, y, na.rm = TRUE, ignore.case = FALSE)
Arguments
x |
A vector to check. |
y |
A vector to compare against. |
na.rm |
logical; Should |
ignore.case |
logical; if |
Details
mean(x %in% y)
Value
The proportion of x
present in y
.
See Also
Other counting wrappers:
count_diff()
,
count_in()
,
count_na()
,
count_out()
,
na_in()
,
na_out()
,
na_rep()
,
prop_distinct()
,
prop_na()
,
prop_out()
,
what_in()
,
what_out()
Examples
prop_in(c("VT", "NH", "ZZ", "ME"), state.abb)
[Package k5 version 0.2.1 Index]