Calculate the width of the range of x
width(x)
x
object to calculate range for
The width of the range of x as integer.
width(1:10) width(c(6748, 234, 2456, 5678)) width(sample(345))