Getting mean and standard deviation from groups in a data.frame
问题 I have heart rate data in the form of a list with the four categories 1AS, 1CS, 1AI, 1CI each of variable size. I would like to output mean and standard deviations for each category in the list. I have the data in this format to calculate ANOVA and Tukey which I have done successfully but the mean has me stumped! Group HR 1 1AS 300 2 1AS 280 3 1AS 260 4 1AS 250 5 1AS 300 6 1AS 272 7 1AS 250 8 1AS 198 9 1AS 200 10 1AS 195 11 1AS 214 12 1AS 249 13 1AS 240 14 1CS 250 15 1CS 236 16 1CS 200 17 1CS