From suharto_anggono at yahoo.com  Sat Apr  1 16:10:06 2017
From: suharto_anggono at yahoo.com (Suharto Anggono Suharto Anggono)
Date: Sat, 1 Apr 2017 14:10:06 +0000 (UTC)
Subject: [Rd] complex NA's match(),
	etc: not back-compatible change proposal
References: <205144061.8603357.1491055806899.ref@mail.yahoo.com>
Message-ID: <205144061.8603357.1491055806899@mail.yahoo.com>

I am raising this again.

With
z <- complex(real = c(0,NaN,NaN), imaginary = c(NA,NA,0)) ,
results of
sapply(z, match, table = z)
and
match(z, z)
are different in R 3.4.0 alpha. I think they should be the same.

I suggest changing 'cequal' in unique.c such that a complex number that has both NA and NaN matches NA and doesn't match NaN, as such complex number is printed as NA.



[Rd] complex NA's match(), etc: not back-compatible change proposal
Suharto Anggono Suharto Anggono