If you read in an excel file in R using read_xlsx, how do you :
IF col.name CONTAINS "date" FORMAT COLUMN as DATE
?
At the moment I do this: