Description Usage Arguments Value Note See Also Examples
Intended for use in [.data.table i.
1 2 |
x |
Any vector e.g. numeric, character, date, ... |
lower |
Lower range bound. |
upper |
Upper range bound. |
incbounds |
|
Logical vector as the same length as x
with value TRUE
for those that lie within the range [lower,upper] or (lower,upper).
Current implementation does not make use of ordered keys.
1 2 | DT = data.table(a=1:5, b=6:10)
DT[b %between% c(7,9)]
|
a b
1: 2 7
2: 3 8
3: 4 9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.