I have a dataset something like this
sample value
A 0.2
B 0.25
C 0.51
D 0.91
I would like to bin the data in the following custom bin of c(0, 0.25, 0.50, 0.75, 0.9) and find out the freq of 'sample' falling in the bin. Using the new binned data, I would like to draw a histogram of values against the number of samples. Any help is appreciated to help me produce these custom bins