Answers for "R make the first row of dataframe the column names"

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 "R make the first row of dataframe the column names"

Browse Popular Code Answers by Language