Difference between dates in SQLDF in R
问题 I am using the R package SQLDF and am having trouble finding the number of days between two date time variables. The variables ledger_entry_created_at and created_at are Unix Epochs and when I try to subtract them after casting to julianday , I return a vector of NA 's. I've taken a look at this previous question and didn't find it useful since my answer to be given in SQL for reasons that are outside the scope of this question. If anyone could help me figure out a way to do this inside SQLDF