powered by
Extract the limits of the intervals obtained from sub setting a vector
cut_borders(x)
A data frame with two columns. The first column contains the lower bounds of each interval. The second column contains the upper bound of each interval
numeric/integer vector
x <- seq(-3, 3, length = 5) groups <- cut(x, 5, include.lowest = TRUE) boundaries <- cut_borders(groups)
Run the code above in your browser using DataLab