temp <- data.frame(re_ply = rnorm(10), total_ID = rnorm(10),  re_ask = rnorm(10))
I want to change the column as:
re_ply to Re-ply
total_ID to total_id
re_ask to Re-ask
temp <- temp %>% dplyr::rename(Re-ply = re_ply,
                           total_id = total_ID,
                           Re-ask = re_ask)
This won't work since in Re-ply and Re-ask has the - symbol won't work. How can I fix it. I know it is not ideal to have a - symbol in the column name but just wanted to check if this is possible at all. My only goal is to rename this file as shown above, write it out as .csv and do other processing in excel.
 
     
    