[R] Error in dimnames(phi) <- list(rn, dims) : length of 'dimnames' [2] not equal to array extent

Jim Lemon drjimlemon at gmail.com
Mon May 18 02:30:41 CEST 2015


Hi Yonas,
If this is the "ca" function from the package of the same name, it
looks to me as though your data set is only two dimensions and you are
requesting 3 dimensions in the output. Have you tried calling ca with
the default nd=NA?

Jim


On Mon, May 18, 2015 at 3:22 AM, Jeff Newmiller
<jdnewmil at dcn.davis.ca.us> wrote:
> You desperately need to study [1] and the Posting Guide mentioned at the bottom of this and every other message on this list.
>
> [1] http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
> ---------------------------------------------------------------------------
> Jeff Newmiller                        The     .....       .....  Go Live...
> DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
>                                       Live:   OO#.. Dead: OO#..  Playing
> Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
> /Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
> ---------------------------------------------------------------------------
> Sent from my phone. Please excuse my brevity.
>
> On May 17, 2015 7:31:08 AM PDT, Yonas Yohannes <yonas at wku.edu.et> wrote:
>>Dears,
>>I have presence and absence data set (8 rows and 33 columns) and when I
>>want to get out of the default two dimensions command using
>>summary(ca(mydata,
>>nd=3)) the following error message displyed:
>>
>>Error in dimnames(phi) <- list(rn, dims) :
>>  length of 'dimnames' [2] not equal to array extent
>>
>>Please help! So many thanks in advance!
>>Kindly,
>>* <mail%3Ayonas at wku.edu.et>*
>>
>>       [[alternative HTML version deleted]]
>>
>>______________________________________________
>>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>>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.
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.



More information about the R-help mailing list