formatC(p,format="fg")
or
formatC(p,format="f",digits=#)

#-specify number of digits

should do the job.


 
Pravin
 
Pravin Jadhav

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Fredrik Lundgren
Sent: Thursday, January 01, 2004 3:05 PM
To: R-help
Subject: [R] force fixed format

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.
                      
Fredrik Lundgren

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to