Answers for "set index column 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

Browse Popular Code Answers by Language