I'm very new to R. I imported some csv data containing dates which got made into factors. Trying to make them into R dates but with no success. I've tried the code below.
> class(mydata$Date)
[1] "factor"
> as.Date(mydata$Date, format = "%Y-%m-%d")
Date still shows up as factors, what can be done? Dates are originally in the format of YYYY-MM-DD, example: 2015-05-08