Sarah Leavitt · Oct 12, 2022 go to post

A generic way to rename the columns would be as follows (I believe with this you no longer need to load the dplyr package):

names(iris) <- gsub("\\.", "_", names(iris))