Skip to content

error reading data help please

2 messages · Joshua Wiley, Ouattara

#
Hi Oz,
On Thu, Apr 7, 2011 at 10:47 AM, Ouattara <B.Ouattara at swansea.ac.uk> wrote:
This listserv only uses plain text emails (which is how the posting
guide respectfully requests you submit all queries).  HTML emails are
converted to plain text, so bold does not come through to us.
Assuming the data file is not malformed, try using a different
delimitter.  read.table() defaults to using space (sep = " ") I think,
but your data may be tab delimitted (sep = "\t"), or comma (sep =
","), or ...

If you are not certain, open your data in a regular text editor, and
see what sort of stuff is in between each cell (i.e., how can you tell
where one cell stops and another starts).  I think space, commas, and
tabs, are the most common, but there are many others.  More generally,
look through the documentation for ?read.table to get ideas for what
different arguments you might try to properly read in your data.

Hope this helps,

Josh
^^ This is the part I mentioned where the list deletes HTML and only
sends us the plain text.
^^ This is where you could have read that the list only sends plain text.

  
    
#
Thanks Josh for your help. The tab delimited option worked.
Best wishes,
Oz

-----Original Message-----
From: Joshua Wiley [mailto:jwiley.psych at gmail.com] 
Sent: 07 April 2011 19:34
To: Ouattara
Cc: r-help at r-project.org
Subject: Re: [R] error reading data help please

Hi Oz,
On Thu, Apr 7, 2011 at 10:47 AM, Ouattara <B.Ouattara at swansea.ac.uk> wrote:
This listserv only uses plain text emails (which is how the posting
guide respectfully requests you submit all queries).  HTML emails are
converted to plain text, so bold does not come through to us.
Assuming the data file is not malformed, try using a different
delimitter.  read.table() defaults to using space (sep = " ") I think,
but your data may be tab delimitted (sep = "\t"), or comma (sep =
","), or ...

If you are not certain, open your data in a regular text editor, and
see what sort of stuff is in between each cell (i.e., how can you tell
where one cell stops and another starts).  I think space, commas, and
tabs, are the most common, but there are many others.  More generally,
look through the documentation for ?read.table to get ideas for what
different arguments you might try to properly read in your data.

Hope this helps,

Josh
^^ This is the part I mentioned where the list deletes HTML and only
sends us the plain text.
^^ This is where you could have read that the list only sends plain text.