grapes-or-grapes: perl/javascript style "or"

Description Usage Arguments Value Author(s)

Description

returns the first argument, if FALSE or of length 0; otherwise the second.

Usage

1
x %or% y

Arguments

x

first argument, of any class

y

second argument, of any class

Value

x, unless x is either the logical scalar FALSE, or has length 0, in which case return y. Note that length(NULL) is 0.

Author(s)

John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm


jbrzusto/motus-R-package documentation built on May 18, 2019, 7:03 p.m.