Possible Duplicate:
R Grouping functions: sapply vs. lapply vs. apply. vs. tapply vs. by vs. aggregate vs
I have a model output file which looks like:
run step x
1 1 1
1 2 4
1 3 3
1 1 4
1 2 5
1 3 6
2 1 5
2 2 4
2 3 7
2 1 3
. . . and I need to calculate the mean values for each step according to the run number.How can I do this? Many thanks to anyone, who can help me. Viola