[R] problem with CAIV

jarioksa@sun3.oulu.fi jarioksa at sun3.oulu.fi
Thu Sep 19 21:39:07 CEST 2002


Quoting Celine Lefebvre <lefebvre at cephb.fr>:

> I am trying to use the function CAIV from the package CoCoAn
> I have a matrix with dimension 43x67 with positive values >=0
> When I use CAIV,  I get the error:
> "Error : column total=0"
> Does someone know why?

I guess you have a column total of 0. That is, you have a species with no 
presences in your matrix. All kinds of CA (including CCA) need >0 column and 
row totals.

Assuming your data matrix is called `x', use `apply(x, 2, sum)' to see the 
column totals and spot the missing species.

Cheers, jari oksanen
--
Jari Oksanen, Department of Natural Resources
Utah State University, Logan UT


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list