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