powered by
Returns the midpoints between the elements of a vector in the order the elements appear.
midpoints(x)
A numeric vector of length
length(x) - 1.
length(x) - 1
A numeric vector with at least 2 elements.
This function does not sort.
midpoints(c(0, 1, 10, 4))
Run the code above in your browser using DataLab