> date<-as.character(date)
> head(date)
[1] "14-Jan" "14-Jan" "14-Jan" "14-Jan" "14-Jan" "14-Jan"
> date1<-as.Date(date,format="%y-%b")
> head(date1)
[1] NA NA NA NA NA NA
I wanna convert the date into date format so that i can make a extensible time series data.
As Scott mentions, you may need to add the day value. Here is another way with
paste(assumes the 1st day of the month for all entries):you could then go back to displaying a year-month format in the following way: