Description Usage Arguments Value Author(s) Examples
This function checks if an object is an integer in the range
[low.bound, up.bound]
.
1 | int.in.range(x, low.bound = 1, up.bound = 4)
|
x |
An object to be tested. |
low.bound |
The lower bound. Default value is 1. |
up.bound |
The upper bound. Default value is 4. |
TRUE
if x is an integer in [low.bound, up.bound]
,
FALSE
otherwise.
Johan Barthelemy.
Maintainer: Johan Barthelemy johan@uow.edu.au.
1 2 3 4 5 6 | # test if x in [0,10]
x <- 5
int.in.range(x, low.bound = 0, up.bound = 10)
# test if y in [1,4]
y <- 10
int.in.range(y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.