[R] reading data

Christoph Lange christoph.lange at tuebingen.mpg.de
Wed May 5 12:53:36 CEST 2004


(Reply to Margarida Júlia Rodrigues Igreja)

Hello!

> When i print:
> > a<-read.table(file="C:/dados10.txt")
> 
> The next error appears:
> Error in file(file, "r") : unable to open connection
> In addition: Warning message:
> cannot open file `C:/dados10.txt'
>  Can you help me?

Contrary to what Professor Ripley wrote, this file name is of course
totally valid under unixoid systems.

But 'C:' looks like a windows hard drive mounted under a Unix
directory named 'C:'. Usually this is done directly under '/', so just
try:

  a<-read.table(file="/C:/dados10.txt")

-cl

-- 
Christoph Lange
MPI fuer biologische Kybernetik  |Phone: +49-7071-601-607|
Postfach 2169, D-72012 Tuebingen |FAX:   +49-7071-601-616|




More information about the R-help mailing list