powered by
Takes a vector of breaks and calculates midpoints of subsequent unique breaks.
midpoints(breaks)
Numeric vector of cut points or a single number specifying the number of intervals desired.
Vector of the same length as x minus 1 with midpoints of breaks.
# NOT RUN { midpoints(1:4) midpoints(c(4, 4:1)) # }
Run the code above in your browser using DataLab