Skip to content

A collection of functions and binary operators that seek to improve workflow

License

Notifications You must be signed in to change notification settings

coatless-rpkg/rops

Repository files navigation

Project Status: Active - The project has reached a stable, usable state and is being actively developed. Travis-CI Build Status CRAN_Status_Badge CRAN RStudio mirror downloads Coverage Status

R Ops (rops)

The objective behind this package is to provide an extension to base R that supplements present operators manipulations.

Demo of Operators

Supported Functionality

Presently, the package has support for the following operators:

  • Null coalescing operator: %??%
    • Operator to allow checking and substitution if a value is null without if/else structure
  • 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.

About

A collection of functions and binary operators that seek to improve workflow

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages