[R] formatted table to disk

Michael A. Miller mmiller3 at iupui.edu
Wed Apr 21 18:38:35 CEST 2004

>>>>> "Randy" == Randy Zelick <zelickr at pdx.edu> writes:

    > Hello there, Using R 1.8.1 and WinXP...

    > I would like to write a disk file (ascii text) of an R data
    > frame. When I type the name of the object in the console
    > window, it is sensibly and nicely formatted. When I use
    > write.table, it is *not*, because the separation character
    > is just a space.

Try sink.

    > A somewhat brutal solution would be to create all the text
    > strings for making a LaTex document/table environment and
    > write all that stuff out to the text file. Please don't
    > tell me I have to do that!

xtable will already do it for you :-)


More information about the R-help mailing list