[R] data frame output

Martin Maechler maechler at stat.math.ethz.ch
Fri Mar 19 09:55:54 CET 2004


>>>>> "Randy" == Randy Zelick <zelickr at pdx.edu>
>>>>>     on Thu, 18 Mar 2004 21:00:08 -0800 (PST) writes:

    Randy> Hello list,
    Randy> Is there a way to *not* supress leading zeros when printing (to the
    Randy> console window or to a file) a dataframe?

Yes, e.g. use

  formatC(..., format = "f")

to produce a character matrix and write() that to your file.




More information about the R-help mailing list