From ripley@stats.ox.ac.uk  Thu Jul 29 15:18:09 1999
From: ripley@stats.ox.ac.uk (ripley@stats.ox.ac.uk)
Date: Thu, 29 Jul 1999 16:18:09 +0200 (MET DST)
Subject: round(numeric(0)) (PR#235)
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


round(numeric(0)) (PR#235)
ripley@stats.ox.ac.uk