I have a data frame that has a "DATE" field. e.g.: "24-10-2015"
The variable is in the date format.
When I use sqldf, e.g.: select min(DATE), MAX (DATE) from table ...
the output is a number like 16623
.
Tried FORMAT and CONVERT but they don't work in sqldf.
Any hints?
Specify the methods for each column in the data frame. Assume 'data' is the name of the data frame with the column name 'd' containing the 'Date' format.
Try the following:
sqldf('select max(d) as MAX__Date,
min(d) as MIN__DATE
from data',
method = "name__class")
This should work.