How to reverse the order of a dataframe in R

前端 未结 7 802
终归单人心
终归单人心 2021-01-03 18:37

I\'ve endlessly looked for this and somehow nothing has solved this simple problem.

I have a dataframe called Prices in which there are 4 columns, one of wh

相关标签:
7条回答
  • 2021-01-03 19:01

    If you just want to reverse the order of the rows in a dataframe, you can do the following:

    df<- df[seq(dim(df)[1],1),]
    
    0 讨论(0)
提交回复
热议问题