0
votes

for eg:

asia$date<-ymd(asia$date)

output: Warning message: 29192 failed to parse

date format in .csv file is "yy.dd.mm" throughout

1
use ydm in palce of ymdBappa Das
it worked! Thank you!bverc

1 Answers

0
votes

As you have stated you have a date like

x <- c("09.01.01", "09.02.01", "09.03.01")

Then you can use

library(lubridate)
ydm(x)

returns me

#> [1] "2009-01-01" "2009-01-02" "2009-01-03"