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))- Log in to post comments
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))