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