Compute the range of a numeric vector

ds_range(x, na.rm = FALSE)

Arguments

x

a numeric vector

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

Value

Range of x

Deprecated Function

stat_range() has been deprecated. Instead use ds_range().

See also

range

Examples

ds_range(mtcars$mpg)
#> [1] 23.5