Hi, I have an R script that imports a couple of csv files, merges them and does all sorts of manipulations. Mostly i use SQLDF (sqlite) as I am a competent SQL coder and not yet competent in R.
All this works fine apart from the date fields which output as text. Sqlite doesn't have a date type. This causes a problem as the PowerQuery that then imports the output from my R program expects dates to be numerics.
I have found how to convert excel dates numbers to dates in R, using as.date, but I need the opposite.