From jinghuazhao at hotmail.com  Sun Jun  4 11:50:35 2017
From: jinghuazhao at hotmail.com (jing hua zhao)
Date: Sun, 4 Jun 2017 09:50:35 +0000
Subject: [Rd] read.table
Message-ID: <LOXP12301MB1656AF9A6E8C2F23651DB36FA5F50@LOXP12301MB1656.GBRP123.PROD.OUTLOOK.COM>

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.


Thanks,



Jing hua


	[[alternative HTML version deleted]]



[Rd] read.table
jing hua zhao