As.Date does not work with% d-% b-% y (R)

I am trying to convert dates to R from "1-Apr-02" to "2002-04-01", but as.Datedo not recognize the format:

> as.Date("1-Apr-02", format="%d-%b-%y")
[1] NA

Even if I put "01"instead "1", it does not work.

+4
source share

Source: https://habr.com/ru/post/1584678/


All Articles