Vidhu Choudhary
2008-Apr-09 20:09 UTC
[R] read table not reading lines containing single quotes
Hi,
* I am using read.table command as follow
kegg<-read.table("c:/IDs.tab",header =TRUE,quote=
"'", sep="\t") *
Fragment of file is as follow:
ID Pathway
04916 Melanogenesis
04920 Adipocytokine signaling pathway
04930 Type II diabetes mellitus
04940 Type I diabetes mellitus
04950 Maturity onset diabetes of the young
05010 Alzheimer's disease
05020 Parkinson's disease
05030 Amyotrophic lateral sclerosis (ALS)
05040 Huntington's disease
05050 Dentatorubropallidoluysian atrophy (DRPLA)
*It doesnot read from Alzheimer's disease. Due the single qoutes in it. Can
you please suggest something so that I can
read full file.
*
Thank you
Vidhu
[[alternative HTML version deleted]]
Philipp Pagel
2008-Apr-09 20:23 UTC
[R] read table not reading lines containing single quotes
On Wed, Apr 09, 2008 at 04:09:57PM -0400, Vidhu Choudhary wrote:> kegg<-read.table("c:/IDs.tab",header =TRUE,quote= "'", sep="\t") *> *It doesnot read from Alzheimer's disease. Due the single qoutes in it.You have almost given the answer yourself: you are declaring the single quote to be a quotation character in your read.table call. Either turn quoting off entirely (quote="") or restrict it to double quotes (quote ="\"") cu Philipp -- Dr. Philipp Pagel Tel. +49-8161-71 2131 Lehrstuhl f?r Genomorientierte Bioinformatik Fax. +49-8161-71 2186 Technische Universit?t M?nchen Wissenschaftszentrum Weihenstephan 85350 Freising, Germany and Institut f?r Bioinformatik und Systembiologie / MIPS Helmholtz Zentrum M?nchen - Deutsches Forschungszentrum f?r Gesundheit und Umwelt Ingolst?dter Landstrasse 1 85764 Neuherberg, Germany http://mips.gsf.de/staff/pagel