[R] corrupted ASCII file; was: (no subject)

Uwe Ligges ligges at statistik.uni-dortmund.de
Wed Mar 31 23:57:20 CEST 2004



Nicole Soranzo wrote:
> 
> Hi, I wonder if you can help me:
> 
> I cannot seem to be able to import my data anymore. When I try to import
> the attached file with the string
> 
> FunctRes<-read.table("C:/Documents and Settings/FunctRes.txt", header=FALSE)
> 
> I obtain:
> 
>  > FunctRes
>      V1
> 1  ÿþC
> 2   \n
> 3    C
> 4    0
> 5    0
> 6    B
> 7   \n
> 8    C
> 9    0
> 10   1
> 11   B
> 12  \n
> 13   C
> 14   0
> 15   0
> 16   B
> 17  \n
> 18   C
> 19   0
> 20   1
> 21   B
> 22  \n
> 23   C
> 24   0
> 25   1
> 26   B
> 27  \n
> 28   C
> 29   0
> 30   1
> 31   B
> 
> Can you help me?

Strange. The file got corrupted in some way. Copy and paste the contents
to another (empty) ASCII file solves the problem.
[Please use a sensible subject.]

Uwe Ligges


> Thanks
> Nicole
> 
> Dr Nicole Soranzo
> 
> Centre for Population Genetics and Human Health
> 
> University College London
> Darwin Building
> Gower Street
> London WC1E 6BT
> 
> Tel: +44 (0)20 7679 4397
> Fax: +44 (0)20 7679 2887
> 
> E-mail: n.soranzo at ucl.ac.uk
> http://popgen.biol.ucl.ac.uk/
> 
>   ------------------------------------------------------------------------
>                    Name: FunctRes.txt
>    FunctRes.txt    Type: Plain Text (text/plain)
>                Encoding: base64
> 
>   ------------------------------------------------------------------------
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


More information about the R-help mailing list