R/print.cTurn.R

Defines functions print.cTurn

print.cTurn <-
function(x, ...) {
    stopifnot(class(x) == "cTurn")
    n.total <- length(x$cluster)
    n.pct <- 100*x$n/n.total
    cat("TURN-RES Clustering of '", x$dataset, "' dataset at r = ", x$r, "...\n\n", sep="")
    cat(paste(sprintf("Clustered %.1f%% of the dataset; n = ", n.pct),format(n.total, big.mark = ","),
              ", k =",x$k, "\n"))
}
ornithos/nectr documentation built on May 24, 2019, 3:57 p.m.