is.in.range: Is in the passed numeric range

View source: R/common.R

is.in.rangeR Documentation

Is in the passed numeric range

Description

Function returns TRUE if the passed variable is numeric and all its content is in the passed range (defined by min and max). Works also in array (in that case all values must be in the range).

Usage

is.in.range(x, min = 0, max = 1)

Arguments

x

value to be tested

min

minimum admitted value

max

maximum admitted value

Value

TRUE if x is a numeric completely in the specified range, FALSE otherwise


GROAN documentation built on Nov. 28, 2022, 5:07 p.m.