Re: [R] barplot

Bendix Carstensen (bxc@svs.dk)
Fri, 26 Feb 1999 09:59:39 +0000

Message-Id: <9902260900.AA14424@svs.dk>
Date: Fri, 26 Feb 1999 09:59:39 +0000
To: r-help@stat.math.ethz.ch
From: Bendix Carstensen <bxc@svs.dk>

When you require 2 digits you expect to find 5.96 printed
as 6.0, i.e. a number somewhere between 5.95 and 6.04999999999999.
This is apparently not always the case for R.
Why does 0 have a special status as trailing digit?

> options(digits=3D2)
> x <- c(59.6,59.4)
> x
[1] 60 59
> x/10
[1] 6.0 5.9
> x[1]/10
[1] 6
\\\|///
\\ - - //
( @ @ )
+--------------------------o00o-(_)-o00o-----------------------+
| Bendix Carstensen |
| Statistiker tlf: 35 30 01 00 |
| Dansk Zoonosecenter dir: 35 30 01 39 |
| Statens Veterin=E6re serumlaboratorium fax: 35 30 01 20 |
| B=FClowsvej 27 e-mail: bxc@svs.dk |
| 1790 K=F8benhavn V Ooooo |
+-------------------------ooooO----( )-----------------------+
( ) ) /
\ ( (_/
\_)
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


This archive was generated by hypermail 1.02.