R sort() data.frame
问题 I have the following data frame head(stockdatareturnpercent) SPY DIA IWM SMH OIH 2001-04-02 8.1985485 7.8349806 7.935566 21.223832 13.975655 2001-05-01 -0.5621328 1.7198760 2.141846 -10.904936 -4.565291 2001-06-01 -2.6957979 -3.5838102 2.786250 4.671762 -23.241009 2001-07-02 -1.0248091 -0.1997433 -5.725078 -3.354391 -9.161594 2001-08-01 -6.1165559 -5.0276558 -2.461728 -6.218129 -13.956695 2001-09-04 -8.8900629 -12.2663267 -15.760037 -39.321172 -16.902913 Actually there are more stocks but for