Learn R Programming

spartan (version 3.0.2)

check_double_value_in_range: Check that a double argument is within a specified range

Description

Check that a double argument is within a specified range

Usage

check_double_value_in_range(argument, argument_name, range_min, range_max)

Arguments

argument

Value of the argument to check

argument_name

Name of the argument, for inclusion in the error message

range_min

Minimum of the range

range_max

Maximum of the range

Value

Boolean stating the current status of the pre-execution checks, or FALSE if this check fails