Renumbering rows after ordering in R programme

前端 未结 3 1135
半阙折子戏
半阙折子戏 2021-02-18 17:00

I have ordered a set of rows to get this:

2   1983  TRI-COUNTY  TRAUTH         0.1495 0.1395     NA      452 0.0764      4      0  06/02/83
4   1983  TRI-COUNTY          


        
3条回答
  •  长发绾君心
    2021-02-18 17:24

    Another solution, normally used when binding rows:

    dataset <- rbind( dataset , make.rows.names=FALSE )
    

提交回复
热议问题