[R] multivariate group means

Walmes Zeviani walmeszeviani at hotmail.com
Mon Jan 4 15:50:29 CET 2010




Ondřej Mikula wrote:
> 
> Hello,
> I look for a simple command computing multivariate group means and
> returning an object of class "matrix" rather than "list". Does any
> such function exist in standard packages?
> I'm beginning with R, so I'm sorry if the solution is trivial.
> Ondra Mikula
> 
> ______________________________________________
> R-help at 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.
> 
> 

Ondra,

Look at kmeans() procedure (help(kmeans)). I think this is what you're
looking for.



-----
..oooO
..................................................................................................
..(....)... 0ooo...                              Walmes Zeviani
...\..(.....(.....)...     Master in Statistics and Agricultural
Experimentation
....\_)..... )../....       walmeszeviani at hotmail.com, Lavras - MG, Brasil
............
(_/............................................................................................
-- 
View this message in context: http://n4.nabble.com/multivariate-group-means-tp990945p998292.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list