Chapter 2 Reading Data

2.1 Beautify colnum names

rawCallData = data.frame(t(c(1,2,3)))
colnames(rawCallData) = c("V_#$1", "V 2", " V.3")
rawCallData
##   V_#$1 V 2  V.3
## 1     1   2    3
# Use gsub to remove everything but numbers and letters in column names
colnames(rawCallData) = gsub("[^[:alnum:]]", "", colnames(rawCallData))
rawCallData
##   V1 V2 V3
## 1  1  2  3