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
Hi I did not see any answer to your question yet so I will try one. r-help-bounces at r-project.org napsal dne 30.12.2009 15:41:43:> Hello, > I look for a simple command computing multivariate group means andWhat is multivariate group mean? Do you mean means of some groups? In that case you could try tapply, by or aggregate> returning an object of class "matrix" rather than "list". Does anyWhy? Although matrix is not list you can use both for further processing. Sometimes it is even easier to handle lists.> such function exist in standard packages? > I'm beginning with R, so I'm sorry if the solution is trivial.> PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code.^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ if you want more specific answer. Regards Petr> Ondra Mikula > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code.
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.