grapes-or-grapes: F or NA -> F Operator

%or%R Documentation

F or NA -> F Operator

Description

Replicates '|' behavior, but returns F instead of NA when making comparisons of F or NA. NA & NA still returns missing when comparing equal length vectors.

Left and Right sides must be same length, or one of them length 1.

Equal length vectors will return vector of point-wise comparisons between the two

If left or right is length 1, it compares it to the entire other vector, returning a vector of logicals comparing to each place.

Usage

left %or% right

Arguments

left

Left side of operator

right

right side of operator

Value

vector of logicals

Examples

coming soon

Ajfrick/ajfhelpR documentation built on June 30, 2023, 12:56 a.m.