Do the values from x fall between the left and right bounds?
between.()
utilizes data.table::between()
in the background
between.(x, left, right)
x |
A numeric vector of values |
left, right |
Boundary values |
between.(1:10, 5, 7) test_df <- data.table( x = sample(1:5, 10, replace = TRUE), y = sample(1:5, 10, replace = TRUE) ) # Typically used in a filter.() test_df %>% filter.(between.(x, 1,3)) # Can also use the %between% operator test_df %>% filter.(x %between% c(1, 3))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.