[R] read.table with special chars
Marc Noguera
mnoguera at imppc.org
Tue Jan 19 10:26:32 CET 2010
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
More information about the R-help
mailing list