Below are the scripts
> library(sqldf)
> turnover = read.csv(\"turnover.csv\")
> names(turnover)
[1] \"Report.Date\" \"PersID\" \"S
sqldf(...)
does not like .
(period) in column names, so you need to change it to something else. Try this:
library(sqldf)
turnover = read.csv("turnover.csv")
colnames(turnover) <- gsub("\\.","_",colnames(turnover))
turnover_hiredate = sqldf("select Status, Current_Hire_Date from turnover")
The reason is that the period is used in SQL to indicate a table column, e.g. turnover.Status
.