I would like to divide a set of data into four equal size interval, e.g.:
x=c(0:10)
G1: [0,2.5)
G2: [2.5,5)
G3: [5,7.5)
G4: [7.5,10]
Is there anyway I can split the data into intervals of equal length (say four in this case) and get the below list including the min and max values:
0 2.5 5 7.5 10
Thanks!