I will like to group some data into several categories for boxplot in R. I obtained my groups like this:
cut(60:95, breaks = c(60,64,68,72,76,80,85,90,95))
Here's my output:
(60,64] (60,64] (60,64] (60,64] (64,68] (64,68] (64,68] (64,68]
(68,72] (68,72] (68,72] (68,72] (72,76] (72,76] (72,76]
(72,76] (76,80] (76,80] (76,80] (76,80] (80,85] (80,85] (80,85] (80,85]
(80,85] (85,90] (85,90] (85,90] (85,90] (85,90] (90,95]
(90,95] (90,95] (90,95] (90,95]
But the categories that I would actually like to have are:
(60,64] (60,64] (60,64] (60,64] (65,68] (65,68] (65,68] (65,68] etc
Does anyone know how I can get my desired outputs?