R-alpha: A logical values numeric?

Martyn Plummer (plummer@iarc.fr)
Fri, 21 Mar 1997 10:06:00 +0100


Message-Id: <199703210901.KAA26058@hypatia.math.ethz.ch>
Date: Fri, 21 Mar 1997 10:06:00 +0100
To: r-testers@stat.math.ethz.ch
From: Martyn Plummer <plummer@iarc.fr>
Subject: R-alpha: A logical values numeric?

I was surprised to discover that is.numeric(TRUE) and is.numeric(FALSE)
return the value TRUE. I expected the results of is.logical() and
is.numeric() to be mutually exclusive, as they are in S.

Martyn






=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- For info or help, send "info" or "help",
To [un]subscribe, send "[un]subscribe"
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-