in the following example, as.Date is unable to parse dates of 30th and 31st of each month.
dates <- c("28/03/2020", "29/03/2020","30/03/2020", "31/03/2020",
"28/04/2020", "29/04/2020", "30/04/2020",
"28/05/2020", "29/05/2020", "30/05/2020", "31/05/2020")
as.Date(dates, format = "%d/%M/%Y")
The result I am getting is:
[1] "2020-02-28" "2020-02-29" NA NA "2020-02-28" "2020-02-29"
[7] NA "2020-02-28" "2020-02-29" NA NA
I´m running R Studio Version 1.4.1103 on a Windows machine.