Hi, I'm having trouble doing this in R:
table$days <- difftime(as.Date("2020-12-31"),as.Date(table$data_od), units = "days")
spr<-sqldf("select days from table")
Error: 'asfn(rs[[i]])':need explicit units for numeric conversion
How can I solve this problem?