Convenience function for range subset logic.
Intended for use in [.data.table i.
- Any vector e.g. numeric, character, date, ...
- Lower range bound.
- Upper range bound.
TRUEmeans inclusive bounds i.e. [lower,upper].
FALSEmeans exclusive bounds i.e. (lower,upper).
- Integer vector containing the locations of
xwhich lie within the range [lower,upper] or (lower,upper).
Current implementation does not make use of ordered keys.
DT = data.table(a=1:5, b=6:10) DT[b %between% c(7,9)]
Looks like there are no examples yet.