Answers for "how to set the first column as row names in r"

R
0

how to set the first column as row names in r

df2 <- df[,-1]
rownames(df2) <- df[,1]
Posted by: Guest on May-27-2021

Code answers related to "how to set the first column as row names in r"

Browse Popular Code Answers by Language