R/makeClustList.R

#' @noRd
makeClustList <-
function (xlslist, clusternum, metric = "manhattan")
{

  clustlist <- plyr::llply(xlslist, function(x) {
                      y <- list()
                      y$dat <- x
                      y$PAM <- lapply(clusternum, function(z) {
                                      p <- list()
                                      p$clusternum <- z
                                      p$PAM <- pam(x, z, metric = metric)
                                      p
                                      })
                      y
                      })

}

Try the PAMhm package in your browser

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

PAMhm documentation built on Sept. 6, 2021, 9:10 a.m.