extracting row labels (?) from a data.frame

前端 未结 1 1653
逝去的感伤
逝去的感伤 2021-01-21 04:25

Starting with a data.frame...

df = data.frame(k=c(1,5,4,7,6), v=c(3,1,4,1,5))
> df
  k v
1 1 3
2 5 1
3 4 4
4 7 1
5 6 5

I might run some numb

1条回答
  •  囚心锁ツ
    2021-01-21 05:14

    I think you're looking for rownames.

    0 讨论(0)
提交回复
热议问题