addHeaderRow

0th

Percentile

add header in a FlexTable

add a header row in a FlexTable

Usage
addHeaderRow(x, value)
Arguments
x

a FlexTable object

value

FlexRow object to insert as an header row

See Also

FlexTable

Aliases
  • addHeaderRow
Examples
# NOT RUN {
data( data_ReporteRs )
myFlexTable = FlexTable( data = data_ReporteRs
		, header.columns=FALSE
		, row.names=FALSE )

cp1 = cellProperties(background.color="#EBEBEB")

headerRow = FlexRow()
for(i in 1:ncol(data_ReporteRs))
   headerRow[i] = FlexCell( pot( names(data_ReporteRs)[i]
		, format=textProperties(font.weight="bold") ), cellProp = cp1 )
myFlexTable = addHeaderRow( myFlexTable, headerRow)
# }
Documentation reproduced from package ReporteRs, version 0.5, License: GPL-3

Community examples

Looks like there are no examples yet.