| rFun {qAnalyst} | R Documentation |
Internal function to compute range values
Description
rFun returns the absolute value of the range of a data vector: (max - min).
Usage
rFun(x)
Arguments
x |
data vector. |
Details
x may contain NA values.
Value
The range numeric value is returned. It may be NA if all elements in input data are NA.
Note
rFun is mainly an internal function used by various other routines.
Author(s)
Andrea Spano' and Giorgio Spedicato
References
Internal function
See Also
Examples
#1 example
x=c(1,2,3,NA, NA)
print(rFun(x))
# 2 example
x=c(NA,NA,NA,NA, NA)
print(rFun(x))
[Package qAnalyst version 0.6.4 Index]