grapes-00-grapes: Rose tinted infix

Description Usage Arguments Author(s) See Also Examples

Description

When your functions wear these rose tinted glasses, the world will appear to be a nicer, fluffier place.

Usage

1
x %00% y

Arguments

x

If (an element of) x is any of Inf,-Inf,NA,NaN,NULL,length(x)==0, it will return/replace the value of y; otherwise x.

y

The value to return/replace for x in case of catastrophy >00<

Author(s)

Fred Hasselman

See Also

purrrr::

Examples

1
2
3
4
5
6
7
8
9
Inf %00% NA

numeric(0) %00% ''

NA %00% 0

NaN %00% NA

NULL %00% NA

invctr documentation built on May 1, 2019, 10:53 p.m.