Skip to content

Commit

Permalink
removing reference to complete linkage function (now removed) in erro…
Browse files Browse the repository at this point in the history
…r message
  • Loading branch information
lucylgao committed Nov 23, 2023
1 parent 4b2e4da commit a08a95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/trunc_inf.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ test_hier_clusters_exact_1f <- function(X, link, hcl, K, k1, k2, feat, indpt=TRU
n <- nrow(X)
q <- ncol(X)

if(link == "complete") stop("Exact p-value not supported. See 'test_complete_hier_clusters_approx' for an approximate p-value.")
if(link == "complete") stop("Exact p-value not supported. ")
if(!link %in% c("single", "average", "centroid", "ward.D", "mcquitty", "median")) stop("Linkage should be 'single', 'average', 'centroid', 'ward.D', 'mcquitty', or 'median'")
if(!is_integer_between_a_b(K, 2, n)) stop("number of clusters (K) should be between 2 and n")
if(!is_integer_between_a_b(k1, 1, K) | !is_integer_between_a_b(k2, 1, K)) stop(paste("cluster indices should be between 1 and K", sep=""))
Expand Down

0 comments on commit a08a95d

Please sign in to comment.