Message-ID: <4B557AC8.8020504@imppc.org>
Date: 2010-01-19T09:26:32Z
From: Marc Noguera
Subject: read.table with special chars
In-Reply-To: <4B557661.7040306@bitwrit.com.au>
Thanks Jim,
I've tried that but still no luck. Some other suggestions?
Thanks again
Marc
Jim Lemon wrote:
> On 01/19/2010 07:41 PM, Marc Noguera wrote:
>
>> Hi all,
>> I am just starting with R and I have come across a problem which I guess
>> it is easy to solve. I am reading a table with read.table function.
>> This table contains chars which seem to be problematic when reading them
>> such as "'" and "#", if I remove these characters fromt the table by
>> hand the problem disappears. Otherwise, the whole table is not read,
>> since reading stops at the problematic tuple.
>> I have been looking in the ?read.table manual but have not found
>> anything. Is there any option to make R not interpret these characters?
>>
>>
> Hi Marc,
> Try changing the "quote" argument to "\"" and the comment.char argument
> to "".
>
> Jim
>
> .
>
>
--
-----------------------------------------------------
Marc Noguera i Julian, PhD
Genomics unit / Bioinformatics
Institut de Medicina Preventiva i Personalitzada
del C?ncer (IMPPC)
B-10 Office
Carretera de Can Ruti
Cam? de les Escoles s/n
08916 Badalona, Barcelona