colnames(df)[col_indx] <- “new_col_name_at_col_indx” #More specifically, colnames(df)[3] <- "column3" #Names the third column of df as "column3".