[R] read.table mystery

Johannes Graumann johannes_graumann at web.de
Sun Mar 6 11:04:12 CET 2011


Hello,

Please have a look at the code below, which I use to read in the attached 
file. As line 18 of the file reads "1065:>sp|Q9V3T9|ADRO_DROME 
NADPH:adrenodoxin oxidoreductase, mitochondrial OS=Drosophila melanogaster 
GN=dare PE=2 SV=1", I expect the code below to produce a 3 column data frame 
with most of the last column empty and line 18 to produce a data.frame row 
like so:

V1
	1065
V2	
	>sp|Q9V3T9|ADRO_DROME NADPH
V3
	adrenodoxin oxidoreductase, mitochondrial OS=Drosophila 
melanogaster GN=dare PE=2 SV=1

Why is that not so?

Thanks for any hint.

Sincerely, Joh

read.table(
  "/tmp/testfile.txt",
  sep=":",
  header=FALSE,
  quote="",
  fill=TRUE
)[19,]
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: testfile.txt
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110306/6bbe6a74/attachment.txt>


More information about the R-help mailing list