Seems like quite an easy problem to solve, but I can't seem to get my head around it in R.
I have dataset with the following columns: 'Biomass' where each row is a value of biomass for a particular species 'Count' where each row is the number of individual animals of that species counted
I need to create a histogram of biomasses, but if I use hist(DF$Biomass) I will get a histogram of the biomasses of the animals where each value is one animal.
I need to include the count, so that I have (for example) the weight frequencies of elephant x 2, giraffe x 56 etc..