![]() ![]() |
|
R ConversionThe R code returns a value that falls within one or more specified ranges.
SYNTAXRn,m{;n,m}...
SYNTAX ELEMENTSn is the starting integer of the range. Can be positive or negative. m is the ending integer of the range. Can be positive or negative, but must be equal to or greater than n.
NOTESIf the value does not fall within the range(s), a null will be returned.
INPUT CONVERSIONInput conversion does not invert. It simply applies the range check to the input data.
EXAMPLE 1
Will return any value that is greater than or equal to 1 and less than or equal to 10.
EXAMPLE 2
Will return any value that is greater than or equal to -10 and less than or equal to 10.
EXAMPLE 3
Will return any value that is greater than or equal to -100 and less than or equal to -10. |