[R] force fixed format
John Fox
jfox at mcmaster.ca
Thu Jan 1 22:12:56 CET 2004
At 09:04 PM 1/1/2004 +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.
>
If the issue is general, try the scipen option:
> options(scipen=10)
> p <- 0.0001
> p
[1] 0.0001
I hope that this helps,
John
-----------------------------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
email: jfox at mcmaster.ca
phone: 905-525-9140x23604
web: www.socsci.mcmaster.ca/jfox
More information about the R-help
mailing list