Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

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.

Examples

3 %<<=% 3 %<<=% 5
# TRUE

3 %<<% 3 %<<=% 5
# FALSE

Details

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

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published

Languages