[R] read.table with spaces

AGUSTIN PEREZ MARTIN agustin.perez at alu.umh.es
Fri Feb 20 15:01:25 CET 2004


DeaR useRs:

Excuses for my english. I am trying to read a file with my dats and the format is a number, 3 spaces, other number, etc...
When I use:
a<-read.table(file="c:/datos2.dat",sep="")
R sais:
Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec,  : 
        line 3 did not have 34 elements

And I see my dats and in line 3 the first number is an space (missing value)
SOS help me!!!!

Thanks.

--
                         
==============oOo============= 
Visit my website in: 
http://users.servicios.retecal.es/aperez2
Maybe you can find something interesting
==============================
--




More information about the R-help mailing list