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