SyntaxFix
Write A Post
Hire A Developer
Questions
There is a helpful function in the psych package.
psych
You should try the following implementation:
psych::describeBy(data$dependentvariable, group = data$groupingvariable)