Calculates the width of a numeric vector by computing the difference between the maximum and minimum values in the vector.
Examples
vec <- c(1, 3, 5, 7, 9)
width(vec)
#> [1] 8
Calculates the width of a numeric vector by computing the difference between the maximum and minimum values in the vector.
vec <- c(1, 3, 5, 7, 9)
width(vec)
#> [1] 8