R/cdm_print_summary_data_frame.R

Defines functions cdm_print_summary_data_frame

Documented in cdm_print_summary_data_frame

## File Name: cdm_print_summary_data_frame.R
## File Version: 0.072


cdm_print_summary_data_frame <- function(obji, from=NULL, to=NULL, digits=3,
                    rownames_null=FALSE)
{
    if (is.vector(obji)){
        obji <- round(obji, digits)
    } else {
        if (is.null(from)){
            from <- 1
        }
        if (is.null(to)){
            to <- ncol(obji)
        }
        ind <- seq( from, to )
        for (vv in ind){
            obji_vv <- obji[,vv]
            if ( is.numeric(obji_vv) ){
                obji[, vv ] <- round( obji_vv, digits )
            }
        }
    }
    if (rownames_null){
        rownames(obji) <- NULL
    }
    print(obji)
}

Try the CDM package in your browser

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

CDM documentation built on Aug. 25, 2022, 5:08 p.m.