R-beta: what to do here?

Robert Gentleman (rgentlem@stat.auckland.ac.nz)
Fri, 2 May 1997 11:24:30 +1200 (NZST)


From: Robert Gentleman <rgentlem@stat.auckland.ac.nz>
Date: Fri, 2 May 1997 11:24:30 +1200 (NZST)
Message-Id: <199705012324.LAA04706@stat13.stat.auckland.ac.nz>
To: r-help@stat.math.ethz.ch
Subject: R-beta: what to do here?


This example works in both R (and the proto-type)

> x<-1:10
> y<-2^(31)-1
> w<-x+y
>  w==y
 [1] F F F F F F F F F F
>  v<-as.integer(w)
>  v==y
 [1] T T T T T T T T T T


I expect that there should be a warning when as.integer truncates by more
than 1.......

robert
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
r-help 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-help-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=