[R] Problem with read.table()
Dieter Menne
dieter.menne at menne-biomed.de
Thu Oct 2 13:58:23 CEST 2008
Joan-Josep Vallbé <pep.vallbe <at> uab.cat> writes:
> I'm a new user and I'm trying to use read.table with a tab delimited
> file but the system tells me (i) that there are more columns than
> column names, and (ii) that headers and col.names are of different
> lengths. I have already checked my variable names and there's no blank
> spaces.
> However, some variables have quite long names such as
> "valoracion.experiencias.segundo.year". Could it be the problem?
I am sure you tried removing the first line and using header =FALSE, because
that is faster than writing a message
> If that is the case, I still don't understand why I have more columns
> that column names.
Use an editor that shows tabs explicitly. Often, there is a TRAILING tab in the
data rows.
Dieter
More information about the R-help
mailing list