Embarrassingly simple question...
I\'m new to R and I can\'t seem to wrap my head around this for some reason. I have a CSV file which looks something like this:
Because the hist function does the counting of items in each bin, you need to 'explode' your 'already counted' data, for example by using rep. Then you can use hist on the resulting vector.
hist
rep
with(df, hist(rep(x = Bin, times = Number)))