SyntaxFix
Write A Post
Hire A Developer
Questions
There's many different ways to go about this, but I'm partial to describeBy in the psych package:
describeBy
psych
describeBy(df$dt, df$group, mat = TRUE)