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