Hi, I have a dataframe with 6 columns. All columns should contain a null or a date value. However, something has gone wrong with the data supply and in a few records we get the contents of the column previously (source file is a csv file with a comma sometimes missing).
I was using the following code, for one column, to try and list all fields to see if they had a date (true) or did not (false)
library(DescTools)
tmp1<-IsDate(file2$Date.Of.Birth)
The only output is [1] - 1 response! I was hoping to get a true/false for each of the 100 records in the dataframe.
Any ideas?
Thanks
Andrew