From hp@ge@@on@g|thub @end|ng |rom gm@||@com  Sat Sep 23 01:58:06 2023
From: hp@ge@@on@g|thub @end|ng |rom gm@||@com (=?UTF-8?B?SGVydsOpIFBhZ8Oocw==?=)
Date: Fri, 22 Sep 2023 16:58:06 -0700
Subject: [Rd] Recent changes to as.complex(NA_real_)
In-Reply-To: <6bcad145-a1f9-32a5-c9e8-97041ed2eab7@gmail.com>
References: <1cf40db9-ea70-483a-a547-270da6926935@gmail.com>
 <25869.28353.595831.807741@stat.math.ethz.ch>
 <4abe101e-55be-8800-31ee-e0414c89740e@gmail.com>
 <57f77592-26ad-43dd-8e36-f9989c915308@gmail.com>
 <6bcad145-a1f9-32a5-c9e8-97041ed2eab7@gmail.com>
Message-ID: <c903af83-d9a6-59cf-6e60-1eb28300bc9f@gmail.com>

On 9/22/23 16:55, Herv? Pag?s wrote:

> The problem is that you have things that are **semantically** 
> different but look exactly the same:
>
> They look the same:
>
> > x
> [1] NA
> > y
> [1] NA
> > z
> [1] NA
>
> > is.na(x)
> [1] TRUE
> > is.na(y)
> [1] TRUE
> > is.na(z)
> [1] TRUE
>
> > str(x)
> ?cplx NA
> > str(y)
> ?num NA
>
oops, that was supposed to be:

 > str(y)
 ?cplx NA

but somehow I managed to copy/paste the wrong thing, sorry.

H.

-- 
Herv? Pag?s

Bioconductor Core Team
hpages.on.github at gmail.com

	[[alternative HTML version deleted]]



[Rd] Recent changes to as.complex(NA_real_)
=?UTF-8?B?SGVydsOpIFBhZ8Oocw==?=