Can anyone of you help in converting the date from 20150101 to abbreviated form Jan-2015 ?
20150101
Jan-2015
I tried the below method.
x = 20
Using lubridate and zoo packages:
lubridate
zoo
library(lubridate) library(zoo) x <- "20150101" as.yearmon(as.Date(ymd(x))) [1] "jan 2015"