Nothing
#' @keywords internal
component_calc <- function(object, distance, min_dist = NULL) {
if (is.null(min_dist)){
clusters <- rep(1, length(object))
} else{
groups <- stats::hclust(distance, "single")
clusters <- stats::cutree(groups, h = min_dist)
}
area_c <- sf::st_area(object)
return(list(area_c = area_c, clusters = clusters))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.