We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20ea493 commit 3e77feaCopy full SHA for 3e77fea
R/vegdist.R
@@ -56,10 +56,13 @@
56
warning("results may be meaningless with non-integer data in method ",
57
dQuote(inm))
58
if (method %in% 7) { # morisita
59
+ if (any(x[x>0] < 1))
60
+ warning("results may be meaningless with positive values < 1 in ",
61
+ dQuote(inm))
62
if (round(max(x)) == 1)
63
warning("results may be meaningless with largest integer 1 in ",
64
- else if (any(r1 <- apply(x, 1, max) < 2))
65
+ else if (any(r1 <- apply(x, 1, max) <= 1))
66
warning(dQuote(inm),
67
" expects some counts > 1, none in row(s) ",
68
paste(which(r1), collapse=", "))
0 commit comments