Re: [R] hist returning density larger than 1

2009-06-04 Thread Sarah Goslee
Hi, If I understand your problem correctly, you didn't need to send us your entire code. A simple reproducible example that showed just your problem would have been sufficient. Take a look at this, and reread the help for hist(). > testdata <- runif(1000) > testdata.hist <- hist(testdata) > test

[R] hist returning density larger than 1

2009-06-04 Thread Steven Matthew Anderson
The following code is giving me problems. I want to export densities of a distribution to a csv file. At the bottom of the code I use the hist function to generate the densities. But hist is returning values greater than 1. I don't understand, why. Any help you can supply is greatly ap