go to post Sarah Leavitt · Oct 12, 2022 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))