]> git.donarmstrong.com Git - ape.git/blobdiff - R/nj.R
various fixes in C files
[ape.git] / R / nj.R
diff --git a/R/nj.R b/R/nj.R
index dada70e52a2a63b20777f98a6bee4ecfab65320e..b12bd42a1c8bc00519d6c92348158ad2dcfb6783 100644 (file)
--- a/R/nj.R
+++ b/R/nj.R
@@ -11,7 +11,7 @@ nj <- function(X)
 {
     if (is.matrix(X)) X <- as.dist(X)
     if (any(is.na(X)))
-        stop("missing values are not allowed in the distance matrix")
+        stop("missing values are not allowed in the distance matrix\nConsider using njs()")
     N <- attr(X, "Size")
     labels <- attr(X, "Labels")
     if (is.null(labels)) labels <- as.character(1:N)