My data has date info with numeric format of decimal, and which makes October subset as Jan.(010=>1) Because of this, as.POSIXct and as.Date are not applicable. When using substring(or substr) to take last two digit, it automatically converted to character, then 010 becomes 1.
num<-c(2019.009, 2019.010,2019.011)
Y<-as.numeric(substring(num,1,4))
M<-as.numeric(substr(num, 7,8))
as.yearmon(paste(Y,M),"%Y %m")
[1] "Sep 2019" "Jan 2019" "Nov 2019"
as.POSIXct(num, tx="GMT","%Y %m")
Error in as.POSIXct.numeric(num, tx = "GMT", "%Y %m") :
'origin' must be supplied
as.Date(num, "%Y %m")
Error in charToDate(x) :
character string is not in a standard unambiguous format