[R] read.table: mysterious line omissions
Jim Lemon
jim at bitwrit.com.au
Sun Dec 20 10:19:29 CET 2009
On 12/20/2009 07:23 PM, Peter Dalgaard wrote:
> 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="".
>
And, if you count the lines omitted down to one of my favorite diseases
(O'nyong nyong fever) gives a total of 362!
Jim
More information about the R-help
mailing list