Answers for "r set column name dataframe"

R
1

r change column name in dataframe

df <- df %>%
  rename(newName1 = oldName1 ,
         newName2 = oldName2)
Posted by: Guest on February-26-2021
0

r set dataframe column names

R> colnames(X)[2] <- "superduper"
Posted by: Guest on May-06-2020

Code answers related to "r set column name dataframe"

Browse Popular Code Answers by Language