[R] Odp: Grouping

2008-01-25 Thread Petr PIKAL
Hi [EMAIL PROTECTED] napsal dne 24.01.2008 23:21:05: > I need to group some subjects according to two > variables (var1, var2) > > I have a data frame that looks something like this: > > Subject var1 var2 > 1 400150 > 2 320100 > 3 580600 > 4

[R] Odp: Grouping by interval

2007-12-07 Thread Petr PIKAL
Hi [EMAIL PROTECTED] napsal dne 07.12.2007 10:04:35: > Hello, > > I have a dataframe of say 20 lines with one line per individual. I want to > group these 20 individuals > by length class (eg. of 5cm) and get the mean value of all the other variables > (eg VarA and VarB) for each length class