Skip to content

Commit

Permalink
pmax.dist strips all attributes, but dist attr are needed distconnected
Browse files Browse the repository at this point in the history
  • Loading branch information
jarioksa committed May 14, 2023
1 parent 1c724bf commit 31b57c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/isomapdist.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
diag(dist) <- NA
is.na(dist) <- apply(dist, 2, function(x)
x > x[order(x, na.last=TRUE)[k]])
dist <- pmax.int(as.dist(dist), as.dist(t(dist)), na.rm = TRUE)
dist <- pmax(as.dist(dist), as.dist(t(dist)), na.rm = TRUE)
}
fragm <- distconnected(dist, toolong=0, trace=FALSE)
take <- NULL
Expand Down

0 comments on commit 31b57c5

Please sign in to comment.