Why is this date not evaluating correctly in R?

  Kiến thức lập trình

I’ve been troubleshooting a filter that wasn’t working right. Then I noticed that when I try to evaluate my date object, it’s not evaluating properly. I am at a loss – why is my date of November 5, 2019 being evaluated as June 27, 1975?

> as.Date(2019-11-05, format = "%Y-%m-%d")
[1] "1975-06-27"

LEAVE A COMMENT