[R] tm[,-1]

Uwe Ligges ligges at statistik.tu-dortmund.de
Thu Mar 11 15:55:05 CET 2010



On 11.03.2010 12:22, ManInMoon 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...

But we tell you to do exactly that and ask you to read how indexing 
works, otherwise we will get dozens of even simpler questions (almost 
impossible, though). Maybe someone is voluntaring to answer if you do 
not hide yourself behind the moon any more, ManInMoon.

Uwe Ligges



>



More information about the R-help mailing list