int.in.range {quarrint} | R Documentation |
Check if an object is an integer in a given range
Description
This function checks if an object is an integer in the range
[low.bound, up.bound]
.
Usage
int.in.range(x, low.bound = 1, up.bound = 4)
Arguments
x |
An object to be tested. |
low.bound |
The lower bound. Default value is 1. |
up.bound |
The upper bound. Default value is 4. |
Value
TRUE
if x is an integer in [low.bound, up.bound]
,
FALSE
otherwise.
Author(s)
Johan Barthelemy.
Maintainer: Johan Barthelemy johan@uow.edu.au.
Examples
# 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)
[Package quarrint version 1.0.0 Index]