[R] ifelse behavior[solved]
Stephan Holl
sholl at gmx.net
Mon Sep 2 17:07:37 CEST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
At 02 Sep 2002 17:00:02 +0200 Peter Dalgaard BSA wrote:
Hello Peter
> > blah$index.s -100
> > [1] -1.421085e-14
>
> I.e.: Never trust exact equality with floatingpoint numbers!
I could solve the problem when I used the round() function. Then the
wanted result came out.
anyway,
thanks for your help
cheers
- --
- --------------------------------------
Stephan Holl
GnuPG Key-ID: 11946A09
ICQ# 117277975
- --------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9c365Eg9SKhGUagkRAvELAJ4pkJLEQMGWBIfswKbvVqBoIvwxOQCbBxRv
vHKRTH9DmRGcc46jGwdxJUQ=
=F4jL
-----END PGP SIGNATURE-----
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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