Skip to content
Prev 63095 / 63421 Next

%in% very slow for Date class since R 4.3

On Thu, 26 Jun 2025, Dirk Eddelbuettel writes:
As a remark -- not a complaint ;-) --, in R 4.5.1: 

  match("2025-01-01", as.Date("2025-01-01"))
  ## [1] 1

which is, in a way, consistent with

  "2025-01-01" == as.Date("2025-01-01")
  ## [1] TRUE


In R-devel (2025-06-26 r88362):

  match("2025-01-01", as.Date("2025-01-01"))
  ## [1] NA

  "2025-01-01" == as.Date("2025-01-01")
  ## [1] TRUE
Message-ID: <87sejl712g.fsf@enricoschumann.net>
In-Reply-To: <26717.38243.910762.366296@rob.eddelbuettel.com> (Dirk Eddelbuettel's message of "Thu, 26 Jun 2025 13:45:55 -0500")