I'm using as.Date for a dataset I have with dates as a variable that I'm using on the x axis of a graph. I had everything fine and the graph output was great, but something happened and now there are missing dates and formatting with things like %Y and %d aren't working!
Can someone please help me figure out how to get the data to feed in correctly?
IHS <- read.csv("IHS 20-21.csv")
IHS$Start.Date <- as.Date(IHS$Start.Date)
This is the code I'm using. If you need more info I can share more, not sure what bits of code would be helpful here, but these two lines are where the problem is. If I feed in the data and check the environment the table looks fine. But then when I add in the as.Date it starts to lose dates.
The dates are in an excel column as follows: excel dates
And I'm trying to get the dates in YYYY/MM/DD format, but I'll be happy with any format as long as the data is all there!