How to get summary statistics by group

前端 未结 10 1470
渐次进展
渐次进展 2020-11-22 05:13

I\'m trying to get multiple summary statistics in R/S-PLUS grouped by categorical column in one shot. I found couple of functions, but all of them do one statistic per call,

10条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-22 05:34

    First, it depends on your version of R. If you've passed 2.11, you can use aggreggate with multiple results functions(summary, by instance, or your own function). If not, you can use the answer made by Justin.

提交回复
热议问题