addFooterRow

0th

Percentile

add footer in a FlexTable

add a footer row in a FlexTable

Usage
addFooterRow(x, value, colspan, text.properties, par.properties,
  cell.properties)
Arguments
x

a FlexTable object

value

FlexRow object to insert as a footer row or a character vector specifying labels to use as columns labels.

colspan

integer vector. Optional. Applies only when argument value is a character vector. Vector specifying the number of columns to span for each corresponding value (in values).

text.properties

Optional. textProperties to apply to each cell. Used only if values are not missing.

par.properties

Optional. parProperties to apply to each cell. Used only if values are not missing.

cell.properties

Optional. cellProperties to apply to each cell. Used only if values are not missing.

See Also

FlexTable, addHeaderRow , alterFlexTable

Aliases
  • addFooterRow
Examples
# NOT RUN {
#START_TAG_TEST
#############################
# simple example
#############################

data(pbc_summary)

MyFTable = FlexTable( data = pbc_summary[,1:4], header.columns = TRUE )

# add a footer row with 1 cell that spans four columns
MyFTable = addFooterRow( MyFTable
  , value = c("Mean of serum cholesterol (mg/dl)"), colspan = 4 )
#########################################
# example with FlexRow objects usage
#########################################

data(pbc_summary)

# create a FlexTable
MyFTable = FlexTable( data = pbc_summary[,1:4] )

# define a complex formatted text
mytext = pot("*"
    , format = textProperties(vertical.align="superscript", font.size = 9) 
  ) + pot( " Mean of serum cholesterol (mg/dl)"
    , format = textProperties(font.size = 9)
  )

# create a FlexRow - container for 1 cell
footerRow = FlexRow()
footerRow[1] = FlexCell( mytext, colspan = 4 )

# add the FlexRow to the FlexTable
MyFTable = addFooterRow( MyFTable, footerRow )
#STOP_TAG_TEST
# }
Documentation reproduced from package ReporteRs, version 0.6.9, License: GPL-3

Community examples

Looks like there are no examples yet.