From ligges at statistik.tu-dortmund.de  Sun Jun  4 17:12:41 2017
From: ligges at statistik.tu-dortmund.de (Uwe Ligges)
Date: Sun, 4 Jun 2017 17:12:41 +0200
Subject: [Rd] read.table
In-Reply-To: <LOXP12301MB1656AF9A6E8C2F23651DB36FA5F50@LOXP12301MB1656.GBRP123.PROD.OUTLOOK.COM>
References: <LOXP12301MB1656AF9A6E8C2F23651DB36FA5F50@LOXP12301MB1656.GBRP123.PROD.OUTLOOK.COM>
Message-ID: <0580ed80-53af-82cd-429a-8d51523138eb@statistik.tu-dortmund.de>



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
>



[Rd] read.table
Uwe Ligges