title: Attempting to create a table in R that shows the mean and sd for stock prices of companies in each sector
body: <p>I have financial data (CleanStocks.csv) that include sectors, companies, and their stock prices. I needed to find out find how many companies were in each sector so I did <code>table(CleanStocks$Sector)</code> which gave me this:</p>
  <pre><code>Consumer Discretionary           Consumer Staples                     Energy 
                      55                         25                          6 
              Financials                Health Care                Industrials 
                      60                         35                         52 
  Information Technology                  Materials                Real Estate 
                      39                         20                         27 
  </code></pre>
  <p>Now I need to get <code>sd(CleanStocks$Price)</code> and <code>mean(CleanStock$Price)</code> for the companies in each of the sectors above into the table also and don't really know where to start, seems simple but I'm stuck</p>