Re: [R] Accessing Max/Min Value of Density Function

2008-06-16 Thread Moshe Olshansky
Try max(mydensity$x), max(mydensity$y), quantile(mydensity$x), etc. See ?density --- On Tue, 17/6/08, Edward Wijaya <[EMAIL PROTECTED]> wrote: > From: Edward Wijaya <[EMAIL PROTECTED]> > Subject: [R] Accessing Max/Min Value of Density Function > To: r-help@r-project.org &g

Re: [R] Accessing Max/Min Value of Density Function

2008-06-16 Thread hadley wickham
>> mydensity <- density(x) >> print(mydensity) > > x y > Min. : -92.14 Min. :0.000e+00 > 1st Qu.: 356.66 1st Qu.:5.530e-09 > Median : 805.45 Median :4.681e-05 > Mean : 805.45 Mean :5.564e-04 > 3rd Qu.:1254.24 3rd Qu.:3.370e-04 > Max. :1703.04 Max.

[R] Accessing Max/Min Value of Density Function

2008-06-16 Thread Edward Wijaya
Dear all, Currently I have the following output > mydensity <- density(x) > print(mydensity) x y Min. : -92.14 Min. :0.000e+00 1st Qu.: 356.66 1st Qu.:5.530e-09 Median : 805.45 Median :4.681e-05 Mean : 805.45 Mean :5.564e-04 3rd Qu.:1254.24 3rd Qu.:3