I have a data frame with a column of dates as integers e.x. 192606 192607 etc.. My date values are just years and months I would like to change this integer form to a dateform so I could plot them in a time series plot (ggplot)
I tried using lubridate but I get an error massage.
sss[,1]<-ymd(sss[,1])
EDIT:
Data can be found here: https://mba.tuck.dartmouth.edu/pages/faculty/ken.french/data_library.html
I am working with 25 Portfolios sorted on size and book-to-market
EDIT 2:
Here ist the output of my data frame. I appreciate your fast help! Thanks
str(sss) num [1:1122, 1:5] 192607 192608 192609 192610 192611 ... - attr(*, "dimnames")=List of 2 ..$ : NULL ..$ : chr [1:5] "Time" "Intercept" "Mkt" "smb" ...
192606
? – Ronak Shah