Description Usage Arguments Value Examples
check if values are within a given interval
| 1 | in_interval(x, low, high, low.closed = T, high.closed = T)
 | 
| x | a numeric vector | 
| low,high | the limits of the reference interval | 
| low.closed,high.closed | set to TRUE for inclusion of the corresponding limit as within the interval. e.g. to test an open interval (x,y), set both to FALSE; to test a closed interval [x,y], set both to TRUE | 
vector of logicals
| 1 2 3 4 | vec <- 1:10
in_interval(vec, 2, 8, T, T)
in_interval(vec, 2, 8, T, F)
in_interval(vec, 2, 8, F, F)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.