[R] read.table: mysterious line omissions

Peter Dalgaard p.dalgaard at biostat.ku.dk
Sun Dec 20 09:23:31 CET 2009


Jonathan wrote:
> Tried deleting several line above and below line 362; did that and changed
> the extension.  Still finds the same number of rows (362).
> 
> Strange!
> Jonathan

The reason is quite apparent if you try page(temp)

....
"Ovine lentivirus", "Peanut chlorotic streak virus", "Pelargonium vein 
banding virus",
"Petunia vein clearing virus", "Porcine endogenous retrovirus",
"RD114 retrovirus", "Reticuloendotheliosis virus", "Rice tungro 
bacilliform virus",
"Rosss goose hepatitis B virus\tNC_005888\nSnow goose hepatitis B 
virus\tNC_005950\nRous sarcoma virus\tNC_001407\nRudbeckia flower 
distortion virus\tNC_011920\nSheldgoose hepatitis B 
virus\tNC_005890\nSimian T-cell lymphotropic virus 6\tNC_011546\nSimian 
T-lymphotropic .....


The single quote in "Ross's" is doing you in. Try adding quote="".

-- 
    O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
   c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
  (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907




More information about the R-help mailing list