No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
compound inequality 2018-02-04.R

Compound inequalities in R

It's sometimes cumbersome to perform a comparison to see if x is between two other values. The functions in this project create compound inequality operators---%>>%, %>>=%, %<<%, and %<<=%---that make it easy to specify comparisons that are inclusive or exclusive on either side, while only typing the compared variable names once.


3 %<<=% 3 %<<=% 5

3 %<<% 3 %<<=% 5


For details on how and why I did this, see Compound Inequalities in R.