可能重复:
R Grouping functions: sapply vs. lapply vs. apply. vs. tapply vs. by vs. aggregate vs如何应用功能跨越运行
我看起来像一个模型输出文件:
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
。 。 。 我需要根据跑步数来计算每一步的平均值。我该如何做?非常感谢任何人,谁可以帮助我。 中提琴
我不熟悉的 “嘿” 的标签。谁制造“嘿”,它用于什么。有没有开源的“嘿”实现? –
也dups:http://stackoverflow.com/questions/9593056/i-would-like-to-group-the-rows-of-this-dataset-by-index-and-then-sum-the-rows-通过/ 9593529 – thelatemail