Skip to content

problem with read.table

3 messages · Kong, Chuang Fong, Brian Ripley, Göran Broström

#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20000225/9984299f/attachment.html
#
On Fri, 25 Feb 2000, Kong, Chuang Fong wrote:

            
If it is tab-delimited, you want sep = "\t" there, in both R and S-PLUS.
See the help page for read.table. The idea is to that "A label with spaces"
will get read as one field, not four.

I hope that helps. If you need further help, we would need to see the file,
as there are too many possibilities to guess from. (One is that
Excel tends to leave off trailing fields if they are missing.)
#
On Fri, 25 Feb 2000, Kong, Chuang Fong wrote:

            
Well, I think you can take for granted that  R doesn't find your
file ...

Is your file in the default directory? Try changing directory to
the place where your file is. You can do that somewhere in the menus.

You should normally not use count.fields.

G?ran
----------------------------------------------------------
 G?ran Brostr?m                      tel: +46 90 786-5223
 Department of Statistics            fax: +46 90 786-6614
 Ume? University                                         
 SE-90187 Ume?, Sweden              email: gb at stat.umu.se
                                                        
 http://www.stat.umu.se/egna/gb    ftp://capa.stat.umu.se
----------------------------------------------------------

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._