powered by
Compute a vector of midpoints between values in a numeric vector
mid(x)
a vector of length 1 less than x
x
a numeric vector
mid(1:5) mid((1:5)^2)
Run the code above in your browser using DataLab