Answers for "set column as index in r"

1

how to set a column as index r

rownames(df) <- df$Date
Posted by: Guest on April-30-2021
0

how to change the index of a dataframe in r

rownames(dfr) <- 1:nrow(dfr)
Posted by: Guest on August-17-2020

Code answers related to "set column as index in r"

Browse Popular Code Answers by Language