Message-ID: <20040101203715.GA32025@stat.umu.se>
Date: 2004-01-01T20:37:15Z
From: Göran Broström
Subject: force fixed format
In-Reply-To: <00e701c3d0a2$84d903c0$2d0ffea9@oemcomputer>
On Thu, Jan 01, 2004 at 09:04:41PM +0100, Fredrik Lundgren wrote:
> Hello,
> A small problem I can't solve
>
> > p <- 0.0001
> > p
> [1] 1e-04
>
> How can I force the printout of p to 0.0001?
> I have tried 'format', 'round', 'signif', 'print' in different combinations without success.
You may check 'formatC':
> formatC(p)
[1] "0.0001"
--
G?ran Brostr?m tel: +46 90 786 5223
Department of Statistics fax: +46 90 786 6614
Ume? University http://www.stat.umu.se/egna/gb/
SE-90187 Ume?, Sweden e-mail: gb at stat.umu.se