[Rd] read.table
jing hua zhao
jinghuazhao at hotmail.com
Sun Jun 4 21:49:27 CEST 2017
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]]
More information about the R-devel
mailing list