[R] how to set the number format to pure numeric?

David Brahm brahm at alum.mit.edu
Tue Aug 24 19:35:29 CEST 2004


lichi shi <lichi at physics.uoguelph.ca> wrote:
> I want to export a numeric matrix in pure numeric format, i.e. I want
> 0.0001 to appear as "0.0001". But it seems the default setting for
> write.table is scientific notation, i.e. it will appear as "1e-04". how
> to set the number format to pure numeric?

Try:
R> options(scipen=99)
which sets a very high SCIentific notation PENalty.
-- 
                              -- David Brahm (brahm at alum.mit.edu)




More information about the R-help mailing list