The objective behind this package is to provide an extension to base R that supplements present operators manipulations.
Demo of OperatorsPresently, the package has support for the following operators:
- Null coalescing
operator:
%??%- Operator to allow checking and substitution if a value is null
without
if/elsestructure
- Operator to allow checking and substitution if a value is null
without
- Missing value (
NA) coalescing operator:ifna(x, y)- Substitute value when NA is detected.
- Is Whole Number:
is_whole(x)- Vectorized boolean operator to assess whether value is an integer.
- Safe Sequence Generation:
from %:% to,safe_seq(from, to, by)- Create sequences that agree with the parity of the incrementer.
- Not In Set:
x %notin% table- Check to see if an element does not belong to a set.
