R/mergeclust.R

Defines functions mergeclust

Documented in mergeclust

mergeclust <- function(clustering,from,to) 
{
    clustering <- as.integer(clustify(clustering))

    clustering[clustering==from] <- to
    out <- list()
    out$clustering <- as.numeric(factor(clustering))
    out
}

Try the optpart package in your browser

Any scripts or data that you put into this service are public.

optpart documentation built on May 2, 2019, 3:27 a.m.