nal Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Prof Brian Ripley
> Sent: Wednesday, May 09, 2007 12:05 PM
> To: John Fox
> Cc: r-devel@r-project.org
> Subject: Re: [Rd] Behaviour of read.table with empty columns
>
> On Wed, 9 May 2007, Jo
On Wed, 9 May 2007, John Fox wrote:
> Dear r-devel list members,
>
> I stumbled across the following behaviour of read.table() recently:
Suppose
> that I have the data
>
> a " " ""
> "" "" ""
>
> in a file or copied to the clipboard, and issue the command
>
>> DF <- read.table("clipboard")
>> D
Perhaps this has to do with the fact that there is not enough
information available
to establish the class of those columns. For example, try this:
read.table("clipboard", colClasses = "character")
On 5/9/07, John Fox <[EMAIL PROTECTED]> wrote:
> Dear r-devel list members,
>
> I stumbled across
Dear r-devel list members,
I stumbled across the following behaviour of read.table() recently: Suppose
that I have the data
a " " ""
"" "" ""
in a file or copied to the clipboard, and issue the command
> DF <- read.table("clipboard")
> DF
V1 V2 V3
1 a NA NA
2NA NA
> is.na(DF)