Skip to content
Back to formatted view

Raw Message

Message-ID: <C3E9AF60-DC89-428A-A146-F3829649D194@comcast.net>
Date: 2011-05-08T12:24:10Z
From: David Winsemius
Subject: write.table vs. read.table and the argument "fill"
In-Reply-To: <4DC55972.9040009@witthoft.com>

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 ....read.table  
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