From jinghuazhao at hotmail.com  Sun Jun  4 21:49:27 2017
From: jinghuazhao at hotmail.com (jing hua zhao)
Date: Sun, 4 Jun 2017 19:49:27 +0000
Subject: [Rd] read.table
In-Reply-To: <0580ed80-53af-82cd-429a-8d51523138eb@statistik.tu-dortmund.de>
References: <LOXP12301MB1656AF9A6E8C2F23651DB36FA5F50@LOXP12301MB1656.GBRP123.PROD.OUTLOOK.COM>,
 <0580ed80-53af-82cd-429a-8d51523138eb@statistik.tu-dortmund.de>
Message-ID: <LOXP12301MB165687FE8DEE205D9F829EA2A5F50@LOXP12301MB1656.GBRP123.PROD.OUTLOOK.COM>

Thanks Uwe.


Jing hua


________________________________
From: Uwe Ligges <ligges at statistik.tu-dortmund.de>
Sent: 04 June 2017 15:12
To: jing hua zhao; R-devel
Subject: Re: [Rd] read.table



On 04.06.2017 11:50, jing hua zhao wrote:
> Hi All,
>
>
> I wonder if there should be one character for quote= in read.table, i.e.,
>
>
>> args(read.table)
> function (file, header = FALSE, sep = "", quote = "\"'", dec = ".",
> ...
>
> I have a file containing the following lines,
>
>
> 08248-GOTERM    3'-phosphoadenosine 5'-phosphosulfate biosynthetic process
> 08279-GOTERM    3'-phosphoadenosine 5'-phosphosulfate binding
> 08494-GOTERM    'de novo' posttranslational protein folding
> 08712-GOTERM    ATP-dependent polyribonucleotide 5'-hydroxyl-kinase activity
> 08759-GOTERM    double-stranded DNA specific 5'-3' exodeoxyribonuclease activity
> 09127-GOTERM    'de novo' actin filament nucleation
> 09180-GOTERM    5'-tyrosyl-DNA phosphodiesterase activity
> 09282-GOTERM    deoxyribonucleoside 5'-monophosphate N-glycosidase activity
> 09330-GOTERM    3'-UTR-mediated mRNA stabilization
> 09355-GOTERM    histone pre-mRNA 3'end processing complex
>
>
> which has two tab-delimited columns. I used read.table("",as.is=TRUE) and ended up with fewer lines so I have to use quote="" which also works if  any line contains only a singe double (") quote.


Yes, you do not use the ' as a quote, hence you have to remove it from
the default setting of its meaning as a quote....

Best,
Uwe Ligges


>
> Thanks,
>
>
>
> Jing hua
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

	[[alternative HTML version deleted]]



[Rd] read.table
jing hua zhao