int.in.range: Check if an object is an integer in a given range

Description Usage Arguments Value Author(s) Examples

View source: R/quarry.R

Description

This function checks if an object is an integer in the range [low.bound, up.bound].

Usage

1
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

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)

quarrint documentation built on May 1, 2019, 10:10 p.m.