Learn R Programming

k5 (version 0.2.1)

count_out: Count out

Description

Count the total values of x that are are %out% of the vector y.

Usage

count_out(x, y, na.rm = TRUE, ignore.case = FALSE)

Value

The sum of x absent in y.

Arguments

x

A vector to check.

y

A vector to compare against.

na.rm

logical; Should NA be ignored?

ignore.case

logical; if FALSE, the pattern matching is case sensitive and if TRUE, case is ignored during matching.

Details

sum(x %out% y)

See Also

Other counting wrappers: count_diff(), count_in(), count_na(), na_in(), na_out(), na_rep(), prop_distinct(), prop_in(), prop_na(), prop_out(), what_in(), what_out()

Examples

Run this code
count_out(c("VT", "NH", "ZZ", "ME"), state.abb)

Run the code above in your browser using DataLab