'Using Stargazer to generate summary tables with multiple identifiers

I am trying to summarize pricing errors for an option pricing model on multiple tickers and %moneyness using stargazer. My data frame consists of a column of characters that have each ticker I am looking at along with another character column that bins the options into %moneyness -- and then a numerical column I want to summarize. I am trying to produce a table in the form:

#> ======================================================
#> Title of the table (centered)
#> ======================================================
#> ticker   %mny      stat1  stat2  stat3  stat4   stat5  
#> ------------------------------------------------------
#> ticker1       
#>          mny1%     ##### #####  #####   ##### ######
#>          mny2%     ##### #####  #####   ##### ######
#>          ....
#>
#> ticker1       
#>          mny1%     ##### #####  #####   ##### ######
#>          mny2%     ##### #####  #####   ##### ######
#>          ....
#> -----------------------------------------------------
#> 

Essentially, I want to group my observations by ticker and then by the %moneyness before calculating the statistical summaries. I'm sorry that this is a very crude representation of what I am trying to do, but I am very new to using stargazer. I saw some similar questions before, but the suggested solutions did not produce a table in this form.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source