Answers for "how to rename a column in dataframe in r"

R
0

r: rename a column

colnames(df)[which(names(df) == "columnName")] <- "newColumnName"
Posted by: Guest on July-23-2020

Code answers related to "how to rename a column in dataframe in r"

Browse Popular Code Answers by Language