print_table: Standardizes the printing of data.frames

Description Usage Arguments

Description

Standardizes the printing of data.frames and allows for renaming of columns without changing original data.frame.

Usage

1
print_table(data, column_names = NA, colors = NA, md = FALSE, ...)

Arguments

data

The data frame to be printed

column_names

Acharacter vector of column names to be applied.

colors

The columns of 'data' that should be colored based of their numeric content (e.g. data[, c('my_col'), drop=FALSE]). Also accepted: A named list of vectors with names indicating columns of data and values indicating colors for the corresponding cells of 'data'.

md

(logical of length 1) If TRUE, return a markdown table istead of HTML.

...

Additional key word arguments are passed to print.xtable


grunwaldlab/labtools documentation built on May 17, 2019, 8:38 a.m.