HMDlogic {DDM}R Documentation

Logical utility functions

Description

These logical functions are like the usual ones, but NA values are treated as FALSE by default. This is not an exhaustive list, but these are the ones that speed our coding, and reduce code clutter. Functions copied from HMD collection directly as-is.

Usage

x %==% y

x %!=% y

x %>% y

x %<% y

x %>=% y

x %<=% y

Arguments

x, y

any two vectors that can be logically compared.

Details

Note that one of these, %>% makes this package incompatible with the magrittr package.

Examples

## Not run: 
c(1,2,NA,4,5) == c(1,NA,3,4,NA)
# compare
c(1,2,NA,4,5) %==% c(1,NA,3,4,NA)

## End(Not run)

[Package DDM version 1.0-0 Index]