dan.operators: Operators not indluded in R

Description Usage Arguments Value Examples

Description

Exactly equals (NA-proof)

Exactly inequal (NA-proof)

Usage

1
2
3
a %==% b

a %!=% b

Arguments

x,

y vectors to be compared

Value

na-proof equality or difference

never NA

Examples

1
2
3
4
5
6
data.frame(a=c(NA,1,NA,1,1), b=c(NA,NA,1,1,2)) %>% mutate(
equal = a==b,
different = a!=b,
real_equal = a%==%b,
real_different = a%!=%b
)

DanChaltiel/danMisc documentation built on Nov. 25, 2019, 10:20 p.m.