Name rows
Add variable to data frame containing rownames
namerows(df, col.name = "id")
df |
data frame |
col.name |
name of new column containing rownames |
This is useful when the thing that you want to melt by is the rownames of the data frame, not an explicit variable
Hadley Wickham <h.wickham@gmail.com>
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.