Answers for "row names as first column 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 "row names as first column in r"

Browse Popular Code Answers by Language