Message-ID: <B2CE3252-EA3C-4C92-BED1-2201C98F7300@auckland.ac.nz>
Date: 2010-12-03T01:34:07Z
From: Rolf Turner
Subject: The behaviour of read.csv().
In-Reply-To: <4CF8423B.9010807@ucalgary.ca>
On 3/12/2010, at 2:04 PM, Peter Ehlers wrote:
<SNIP>
> Rolf,
> This is not to argue with your point re counter-intuitive,
> but I always run a count.fields() first if I haven't seen
> (or can't easily see) the file in my editor. I must have
> learned that the hard way a long time ago.
Sound advice! Thanks. I'd just like to point out however
that it might be an idea to set quote="\"" in the call to
count.fields() --- to make its idea of how many fields there
are consistent with that of read.csv(). In count.fields()
quote defaults to "\"'" whereas in read.csv() it defaults
to "\"".
cheers,
Rolf