Re: [R] write.table vs. read.table and the argument "fill"

From: David Winsemius <>
Date: Sun, 08 May 2011 08:24:10 -0400

On May 7, 2011, at 10:38 AM, Carl Witthoft wrote:

> Just wondering how come read.table lets you specify fill=TRUE for
> ragged arrays, but so far as I can tell, no equivalent for
> write.table?

I imagine the answer is something along the lines of creates a rectangular structure and write.table outputs a rectangular structure, so they are congruent. If I wanted to accomplish writing a ragged list I would consider using lapply , paste, and writeLines.

> Not a big deal, since I'm perfectly comfortable w/ write and scan
> and the other file I/O goodies. "A foolish inconsistency..." and
> all that.

David Winsemius, MD
West Hartford, CT

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Sun 08 May 2011 - 12:29:01 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 08 May 2011 - 13:20:05 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive