How to sort a data frame by date

前端 未结 7 844
孤城傲影
孤城傲影 2020-11-28 21:46

I need to sort a data frame by date in R. The dates are all in the form of \"dd/mm/yyyy\". The dates are in the 3rd column. The column header is V3. I have seen how to s

7条回答
  •  孤街浪徒
    2020-11-28 22:16

    If you just want to rearrange dates from oldest to newest in r etc. you can always do:

    dataframe <- dataframe[nrow(dataframe):1,]
    

    It's saved me exporting in and out from excel just for sort on Yahoo Finance data.

提交回复
热议问题