Skip to content

%within% infix function for R `aInB <- a %within% b`

Notifications You must be signed in to change notification settings

alexjgriffith/within

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

%within%

Alexander Griffith, University of Ottawa

Provides %within% as an infix function to test wheather or not the values of summits fall within any two pairs.

library(within)

summits <- c(100, 150, 310, 900, 1100)
start <- c(-50, 120 , 310, 1000)
end <- c(200, 300 , 400, 2000)

summits %within% cbind(start,end)

summits %within% cbind(end,start)

summits %within% rbind(end,start)

About

%within% infix function for R `aInB <- a %within% b`

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published