condformat: Conditional Formatting in Data Frames

Share:

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.

Author
Sergio Oller Moreno [aut, cph, cre]
Date of publication
2016-07-25 19:57:06
Maintainer
Sergio Oller Moreno <sergioller@gmail.com>
License
BSD_3_clause + file LICENSE
Version
0.4.0
URLs

View on CRAN

Man pages

condformat
Converts a data frame or matrix to a condformat_tbl class.
condformat2excel
Writes the table to an Excel sheet
condformat2html
Converts the table to a htmlTable object
condformat2latex
Converts the table to LaTeX code
get_css_field
Returns a matrix with the value of the CSS field for each...
knit_print.condformat_tbl
Print method for knitr, exporting to HTML or LaTeX as needed
lock_cells
If rule_locks is TRUE, locks the cells specified by mask so...
plus-.condformat_tbl
Combines the data with the formatting rules and graphical...
print.condformat_tbl
Prints the data frame in an html page and shows it.
render_rules_condformat_tbl
Renders the css matrix to format the xview table
rule_fill_discrete
Fill column with discrete colors
rule_fill_gradient
Fill column with sequential colour gradient
rule_fill_gradient2
Fill column with divergent colour gradient
show_columns
Selects the variables to be printed
show_rows
Selects the rows to be printed
theme_htmlTable
Customizes appearance of condformat object

Files in this package

condformat
condformat/inst
condformat/inst/doc
condformat/inst/doc/introduction.R
condformat/inst/doc/introduction.html
condformat/inst/doc/introduction.Rmd
condformat/tests
condformat/tests/testthat.R
condformat/tests/testthat
condformat/tests/testthat/test_rule_fill_discrete.R
condformat/tests/testthat/test_theme_htmlTable.R
condformat/tests/testthat/test_rendering.R
condformat/tests/testthat/test_rule_fill_gradient.R
condformat/tests/testthat/test_show.R
condformat/NAMESPACE
condformat/NEWS
condformat/R
condformat/R/rule_fill_gradient.R
condformat/R/condformat_render.R
condformat/R/rule_fill_discrete.R
condformat/R/show_rows.R
condformat/R/show_columns.R
condformat/R/theme_htmlTable.R
condformat/R/rule_fill_gradient2.R
condformat/R/rule_helper.R
condformat/R/condformat.R
condformat/vignettes
condformat/vignettes/introduction.Rmd
condformat/README.md
condformat/MD5
condformat/build
condformat/build/vignette.rds
condformat/DESCRIPTION
condformat/man
condformat/man/lock_cells.Rd
condformat/man/knit_print.condformat_tbl.Rd
condformat/man/show_rows.Rd
condformat/man/theme_htmlTable.Rd
condformat/man/get_css_field.Rd
condformat/man/rule_fill_discrete.Rd
condformat/man/condformat2excel.Rd
condformat/man/condformat.Rd
condformat/man/print.condformat_tbl.Rd
condformat/man/show_columns.Rd
condformat/man/render_rules_condformat_tbl.Rd
condformat/man/plus-.condformat_tbl.Rd
condformat/man/rule_fill_gradient.Rd
condformat/man/rule_fill_gradient2.Rd
condformat/man/condformat2latex.Rd
condformat/man/condformat2html.Rd
condformat/LICENSE