I have a data set of stock data ordered by date and then ordered by magnitude of return from largest to smallest on that date. Each day has about 800 stocks in it.
How would I create a new data frame with only the top 10 stocks from each day with the largest return?
So I need the top 10 from each date, the others I don't care about.