Dear R users,
have one file with date starting from 188001 as an integer
e.g.
(yearmonth)
188001
188002
188003
188004
188005
.
.
.
200112
I tried to convert into date but not able to done It
I tried as
file$Year <- strptime(as.character(file$Year), "%Y%m")
file$year <- format(file$Date, "%Y")
file$month <- format(file$Date, "%m")
transform(file, x = as.Date(as.character(file$Year), "%y%m"))
But could not do it, please provide some thoughts on that.
Thank You