>> 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.   :5.541e-03
>
>
> How can I access the Max value of "x" or "y"?
> I tried this, but doesn't seem to work.
>
>> print(mydensity$y.max)
> NULL

Have a look at str(mydensity)

Hadley

-- 
http://had.co.nz/

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to