R/print.aggstat.R

Defines functions `print.aggstat`

`print.aggstat` <-
function(x, ...){

    tab <- x$tab
    nbfact <- x$nbfact
    digits <- x$digits

    cat("\n")
    print(x$CALL)
    cat("\n")

    # round the output when necessary
    if(!is.null(digits) && ncol(tab) > 0 && nrow(tab) > 0)
        tab[, (nbfact + 1):ncol(tab)] <- round(tab[, (nbfact + 1):ncol(tab)], digits = digits)
    
    print(tab)
    cat("\n")

    }
rforge/tdisplay documentation built on Feb. 21, 2022, 7:50 a.m.