rFun {qAnalyst} | R Documentation |
rFun
returns the absolute value of the range of a data vector: (max - min).
rFun(x)
x |
data vector. |
x may contain NA values.
The range numeric value is returned. It may be NA if all elements in input data are NA.
rFun
is mainly an internal function used by various other routines.
Andrea Spano' and Giorgio Spedicato
Internal function
#1 example x=c(1,2,3,NA, NA) print(rFun(x)) # 2 example x=c(NA,NA,NA,NA, NA) print(rFun(x))