Description Usage Arguments Value

Test if a vector of numbers is inside of a specified range, with the bounds optionally included.

1 2 3 | ```
x %between% y
`%between%`(x, y, inc_bounds=TRUE)
``` |

`x` |
numeric vector to be tested. |

`rng` |
vector of minimum and maximum values of the range. Elements beyond the first 2 are ignored. |

`inc_bounds` |
logical, whether to include the bounds in the set that is tested. If set to TRUE, values identical to the bounds are considered matches. Defaults to FALSE. Works only if the function is not used as an infix operator (see usage example below). |

a logical vector with one element for each element in x

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.