I have this date column of form:
20160812
20160813
Basically YYYYMMDD.
I converted it to a date using strptime and as.Date
weather_dataset$DATE = as.Date(weather_dataset$DATE,"%Y%m%d")
But I get
Error in charToDate(x) :
character string is not in a standard unambiguous format
Huh? I've clearly specified the format to use, but its still throwing me this error for some reason. Would appreciate help! :)
Thank you!