round(numeric(0)) (PR#235)

About this list Date view Thread view Subject view Author view Other groups

Subject: round(numeric(0)) (PR#235)
ripley@stats.ox.ac.uk
Date: Fri 30 Jul 1999 - 00:18:09 EST


Message-Id: <199907291418.QAA05728@pubhealth.ku.dk>

Try

> round(numeric(0))
[1] NA
> floor(numeric(0))
numeric(0)
> trunc(numeric(0))
numeric(0)

S has them all as numeric(0), and I think R is wrong.
This looks like a design error in the math2 group: it applies to
signif too, and also to the complex cases, e.g.
> signif(complex(0))
[1] NA

--please do not edit the information below--

Version:
 platform = sparc-sun-solaris2.6
 arch = sparc
 os = solaris2.6
 system = sparc, solaris2.6
 status =
 status.rev = 0
 major = 0
 minor = 64.2
 year = 1999
 month = July
 day = 3
 language = R

Search Path:
 .GlobalEnv, package:ts, Autoloads, package:base

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Tue 04 Jan 2000 - 14:16:06 EST