I'm trying to use strptime to format dates I'm reading in but only get NA values are returned in the output.
My raw data is in the format of 1974-01-01, and the length of the dataset is 12049 so the last date is 2006-12-31.
The code I use is:
Data$date.yyyymmdd <- as.POSIXct(strptime(Data$date.yyyymmdd, format = "%d/%m/%Y"))
Any help or insight into this problem would be very much appreciated!