[R] Re:how to compute a "mode" of a distribution

John Wilkinson wilks at dial.pipex.com
Thu Aug 26 12:42:22 CEST 2004


On 08/24/04 13:50, Paolo Tommasini wrote:

>Hi my name is Paolo Tommasini does anyone know how to compute a "mode"
>( most frequent element ) for a distribution ?

try

median(density(my.vector))


John

John Wilknson

[wilks at dial.pipex.com]




More information about the R-help mailing list