After importing a file, I always try try to remove spaces from the column names to make referral to column names easier.
Is there a better way to do this other then
best solution I found so far is
names(ctm2) %<>% stringr::str_replace_all("\\s","_") %>% tolower
credit goes to commenters and other answers