condformat: Conditional Formatting in Data Frames

Apply and visualize conditional formatting to data frames in R. It renders a data frame with cells formatted according to criteria defined by rules, using a syntax similar to 'ggplot2'. The table is printed either opening a web browser or within the 'RStudio' viewer if available. The conditional formatting rules allow to highlight cells matching a condition or add a gradient background to a given column. This package supports both 'HTML' and 'LaTeX' outputs in 'knitr' reports, and exporting to an 'xlsx' file.

Install the latest version of this package by entering the following in R:
AuthorSergio Oller Moreno [aut, cph, cre]
Date of publication2017-01-23 21:18:26
MaintainerSergio Oller Moreno <>
LicenseBSD_3_clause + file LICENSE

View on CRAN


condformat Man page
condformat2excel Man page
condformat2html Man page
condformat2latex Man page
condformat2widget Man page
condformatOutput Man page
condformat-shiny Man page
+.condformat_tbl Man page
get_css_field Man page
knit_print.condformat_tbl Man page
lock_cells Man page
print.condformat_tbl Man page
reexports Man page
renderCondformat Man page
render_rules_condformat_tbl Man page
rule_fill_discrete Man page
rule_fill_discrete_ Man page
rule_fill_gradient Man page
rule_fill_gradient_ Man page
rule_fill_gradient2 Man page
rule_fill_gradient2_ Man page
show_columns Man page
show_columns_ Man page
show_rows Man page
show_rows_ Man page
theme_htmlTable Man page
uq Man page

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.