From the help page for the read.delim() function, under "See Also", suggests:
'count.fields' can be useful to determine problems with reading
files which result in reports of incorrect record lengths.
This is sometimes helpful.
-Don
At 1:14 PM -0800 2/24/10, Euphoria wrote:
Hi all! I am desperately trying to figure out the solution to this error, but
nothing as of yet is working.
As noted in an earlier post I am using GenABEL. In an attempt to read in
the phenotype file, in the format .dat, R keeps giving me the error "more
columns than column names"
I have tried to read in the data without the headers; I have also tried to
trim the data to remove any trailing tabs or spaces but it doesn't solve the
problem. All missing values have been replaced with "NA", and all data
seems to have matching corresponding header value - each column has a
matching column name.
What could be the possible underlying problem? I have tried to problem-solve
but clearly I am at a loss. Thanks for your help!
Code:
mix <- load.gwaa.data (phe = "Z:/CCFPhenotypesTAB.dat", gen =
"pedmap-0.raw", force = T)
--
View this message in context:
http://*n4.nabble.com/R-error-more-columns-than-column-names-tp1568052p1568052.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
R-help@r-project.org mailing list
https://*stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://*www.*R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
--------------------------------------
Don MacQueen
Environmental Protection Department
Lawrence Livermore National Laboratory
Livermore, CA, USA
925-423-1062
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.