R-beta: what to do here?
Robert Gentleman
rgentlem at stat.auckland.ac.nz
Fri May 2 01:24:30 CEST 1997
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 at stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
More information about the R-help
mailing list