powered by
between(x,lower,upper,incbounds=TRUE) x
data.table
like
DT = data.table(a=1:5, b=6:10) DT[b %between% c(7,9)] # select from DT where b between 7 and 9
Run the code above in your browser using DataLab