isBound {FastUtils}R Documentation

Check if a Number is within a Range

Description

This function checks if a number is within a specified range.

Usage

isBound(num, lowerbound, upperbound)

Arguments

num

A numeric vector to be checked.

lowerbound

The lower bound of the range.

upperbound

The upper bound of the range.

Value

A logical vector indicating whether each element is within the specified range.

Examples

isBound(1, 0, 2)
isBound(1:10, -1, 5)


[Package FastUtils version 0.1.1 Index]