A simple wrapper for diff(range(x)), so max(x) - min(x).
diff(range(x))
max(x) - min(x)
rangeVal(x, na.rm = FALSE)
x
[numeric] The vector.
numeric
na.rm
[logical(1)] If FALSE, NA is returned if an NA is encountered in x. If TRUE, NAs are disregarded. Default is FALSE
logical(1)
FALSE
TRUE
[numeric(1)].
numeric(1)