INTERNAL FUNCTION: Check values of a numeric vector or matrix according to limits.
CheckNumeric.Rd
Possibly changed data is retuned
Usage
CheckNumeric(
x,
minLimit = -Inf,
maxLimit = Inf,
setNA = TRUE,
allowMissing = TRUE,
allowInf = FALSE,
varName = "Variable"
)
Arguments
- x
numeric vector or matrix
- minLimit
lower limit
- maxLimit
upper limit
- setNA
When TRUE values outside limits are set to NA instead of error
- allowMissing
When FALSE missing values cause error
- allowInf
When FALSE -Inf and Inf always considered outside limits
- varName
String used in warning or error message