ReporteRs (version 0.4)

addHeaderRow: add header in a FlexTable

Description

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

Examples

Run this code
# 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)
# }

Run the code above in your browser using DataCamp Workspace