How to reset row names?

前端 未结 1 1300
情话喂你
情话喂你 2020-11-30 04:01

Here is a sample data set:

sample1 <- data.frame(Names=letters[1:10], Values=sample(seq(0.1,1,0.1)))

When I\'m reordering the data set,

相关标签:
1条回答
  • 2020-11-30 04:17

    Try

    rownames(Ordersample2) <- 1:10
    

    or more generally

    rownames(Ordersample2) <- NULL
    
    0 讨论(0)
提交回复
热议问题