It sounds like one of your columns is all zeros. Look at the input data to make 
sure all observations have positive values.

-----Original Message-----
From: R-sig-ecology <r-sig-ecology-boun...@r-project.org> On Behalf Of SANDILE 
N KHANYILE
Sent: Saturday, March 16, 2024 2:32 PM
To: r-sig-ecology@r-project.org
Subject: [EXTERNAL] [R-sig-eco] Error running an R code



 This email has been received from outside of DOI - Use caution before clicking 
on links, opening attachments, or responding.



Fellow Scientists,
Please help me. I have environmental data (73 observations and 8 variables) and 
species data (73 observations and 24 variables). After running code, get the 
following error:
Error in cca.default(d$X, d$Y, d$Z) :   all row sums must be >0 in the 
community data matrix
However the code run just fine when use another species data with more 
variables (73 observations and 169 variables) Thank You In advance.S. Khanyile

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-ecology mailing list
R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology

_______________________________________________
R-sig-ecology mailing list
R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology

Reply via email to