Reputation: 61
I couldn't find the answer to this. I'd like to use stargazer for summary statistics. I would like my summary statistics to be subset by group, with group as a header. Any way to do this efficiently preferably within stargazer?
Upvotes: 0
Views: 742
Reputation: 61
Answering my question and for the future readers. You can use sumtable
via vtable
package.
Just specify the group.
st(iris, group = 'Species')
More here: https://cran.r-project.org/web/packages/vtable/vignettes/sumtable.html
Upvotes: 1