How to get summary statistics by group

1. tapply I’ll put in my two cents for tapply(). tapply(df$dt, df$group, summary) You could write a custom function with the specific statistics you want or format the results: tapply(df$dt, df$group, function(x) format(summary(x), scientific = TRUE)) $A Min. 1st Qu. Median Mean 3rd Qu. Max. “5.900e+01” “5.975e+01” “6.100e+01” “6.100e+01” “6.225e+01” “6.300e+01” $B Min. 1st Qu. … Read more