ChiLiubio / microeco

An R package for data analysis in microbial community ecology
GNU General Public License v3.0
181 stars 55 forks source link

Error when run t1$cal_diff Error in if (pvalue[k] <= 0.001) sig[k] <- "***" else if (pvalue[k] <= : #Missing values should not be used where TRUE/FALSE values are required #310

Closed xinguo1236 closed 5 months ago

xinguo1236 commented 5 months ago

when I run t1$cal_diff(group = "layer", by_group = "Group", method = "anova")

Error in if (pvalue[k] <= 0.001) sig[k] <- "***" else if (pvalue[k] <= :

Missing values should not be used where TRUE/FALSE values are required

I have already deleted the rows with 0 values in the OTU table, but the error still persists.

Is anything I can do to solve the problem? Many thanks if anyone can help.