Learn R Programming

xltabr (version 0.1.2)

auto_style_number_formatting: Use the data type of the columns to choose an automatic Excel format for body cells

Description

This function reads styling from the styles defined here

Usage

auto_style_number_formatting(tab, overrides = list())

Arguments

tab

a table object

overrides

a list containing any manual overrides where the user wants to provide their own style name

Examples

Run this code
# NOT RUN {
body_data <- readRDS(system.file("extdata", "test_number_types.rds", package="xltabr"))
tab <- initialise()
tab <- add_body(tab, body_data)
tab <- auto_style_number_formatting(tab)
# }

Run the code above in your browser using DataLab