Hi all,
I have a task where I am creating an equal depth bin. My goal is to come up with the following bin:
[3, 4), [5, 6] and [7, 8]
library(classInt)
quality <- c(3, 4, 5, 6, 7, 8)
df.wine <- data.frame(quality)
w <- classIntervals(df.wine$quality
, n=3
, style = "pretty"
)
w
But when I run my R code I get this
[2,4) [4,6) [6,8]
I request someone to point me in the right direction.
Thank you,
Ron