[R] write.table

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Feb 9 10:50:25 CET 2006


> Hello!
> When using the command "write.table" I want to convert the format: 5e-04
> to  .0005. How can I do it?
> The only option I found is to use write.matrix but then I cant add rownames.
> Thank you
> Ronen

?options, see scipen.

Or, use format() to convert table before writing it.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list