Please do check the Intro to R manual.
Hint: section 2.7.3 ** 1. *A vector of negative integral quantities*. Such an index vector specifies the values to be *excluded* rather than included. Thus > y <- x[-(1:5)] gives y all but the first five elements of x. On Thu, Mar 11, 2010 at 6:22 AM, ManInMoon <xmoon2...@googlemail.com> wrote: > > This does what I was hoping it would: > > aggregate(tm[,-1],by=list(tm[,10]),FUN="mean") > > but I don't know what "tm[,-1]" means (well - the -1 bit anyway. > > Does it somehow means the whole matrix? > > > > Please don't tell me to check the manual - I tried and failed dismally... > > > -- > View this message in context: > http://n4.nabble.com/tm-1-tp1588804p1588804.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve? [[alternative HTML version deleted]] ______________________________________________ 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.