in_dbl: A version of '%in%' working exclusively on numeric data.

Description Usage Arguments Details Value Author(s) See Also

Description

%in_dbl% is an intuitive interface analogous to %in% as binary operator, which returns a logical vector indicating if there is a match or not for its left operand

Usage

1
x %in_dbl% table

Arguments

x

A numeric vector with the values to be matched.

table

A numeric vector with the values to be matched against.

Details

%in_dbl% is defined as

`%in_dbl%` <- function(x, table) match_dbl(x, table, nomatch = 0) > 0

Value

A vector of the same length as x. A logical vector, indicating if a match was located for each element of x: thus the values are TRUE or FALSE and never NA.

Author(s)

Dominik Mueller

See Also

match_dbl


DominikMueller64/dmisc documentation built on May 6, 2019, 2:52 p.m.