I usually found this problem to be connected to spaces in the column names.
Or, a wrong "sep" argument (for example "," instead of "\t" and the like)

Let us know if it helped.

Cheers,
Tal



----------------Contact
Details:-------------------------------------------------------
Contact me: tal.gal...@gmail.com |  972-52-7275845
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
www.r-statistics.com (English)
----------------------------------------------------------------------------------------------




On Wed, Feb 24, 2010 at 11:14 PM, Euphoria <yeshapate...@gmail.com> 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.
>

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to