ceq: An identity function that returns TRUE for confirmable...

Description Usage Arguments Author(s) Examples

View source: R/ceq.r

Description

This function will return true if the comparison '==' is TRUE. It will return false if '==' returns FALSE or NA. Optionally it can return TRUE if both things compared are NA.

Usage

1
ceq(x, y, na.equal = FALSE)

Arguments

x

Numeric (or boolean) vector to be compared with y

y

Numeric (or boolean) vector to be compared with x

na.equal

if TRUE the comparison of NA with NA will return TRUE

Author(s)

Henrik Renlund

Examples

1
2
3
x <- c(0,1,NA,2); y <- c(0,2,NA,NA)
ceq(x,y)
ceq(x,y,na.equal=TRUE)

renlund/dataman documentation built on March 19, 2018, 10:09 a.m.