Compute the range of a numeric vector
ds_range(x, data = NULL, na.rm = FALSE)
| x | a numeric vector or column name. |
|---|---|
| data | a |
| na.rm | a logical value indicating whether NA values should be stripped before the computation proceeds. |
Range of x
ds_range(mtcars$mpg)#> [1] 23.5ds_range(mpg, mtcars)#> [1] 23.5