Learn R Programming

ReporteRs (version 0.8.10)

chprop.FlexTable: format FlexTable

Description

Format a FlexTable object.

Usage

# S3 method for FlexTable
chprop(object, value, i, j, to = "body", side = "top",
  ...)

Arguments

object

the FlexTable object

value

a formatting properties object (textProperties, parProperties, borderProperties, cellProperties)

i

vector (integer index, row.names values or boolean vector) for rows selection.

j

vector (integer index, col.names values or boolean vector) for columns selection.

to

specify on which part of the FlexTable to apply the value, must be one of the following values “body” (default) or “header” or “footer”

side

used only when value is a borderProperties, specify on which side to apply the properties. It must be one of “bottom”, “top”, “left”, “right”.

...

unused

Examples

Run this code
# NOT RUN {
my_ft <- vanilla.table( head( iris, n = 5 ) )
my_ft <- chprop( my_ft, textBoldItalic(), i = 1, to = "header" )
my_ft <- chprop( my_ft, parCenter(), j = 5 )
my_ft <- chprop( my_ft, borderSolid(color = "red"), i = 5, side = "bottom" )
# }

Run the code above in your browser using DataLab