Skip to content
Prev 43457 / 398506 Next

Measures of central tendency - mode

Thanks to Andy Liaw and J.R. Lockwood for your suggestions.  The which.max() worked great along with the rownames.  The complete solution for me was:

a <- table(varname)
[1] "1"

Amazing how a simple concept such as mode can present problems for us.  Thanks again.

To reply to Spencer Graves' question, I didn't find the disucssion via search.  I guess I might have overlooked the thread if it were titled kernel density since that seemed far too technical for this basic topic.  Sorry if I cluttered up the list though.

Cheers,

Patrick


On Fri, 30 Jan 2004 16:47:54 -0500 (EST)
"J.R. Lockwood" <lockwood at rand.org> wrote: