ReporteRs (version 0.5)

FlexRow: Row object for FlexTable

Description

Create a representation of a row that can be inserted in a FlexTable.

Usage

FlexRow(values, colspan, textProp = textProperties(),
    parProp = parProperties(), cellProp = cellProperties())

Arguments

values

Optional. a character vector to use as text content, the row will contain as many cells as there are in values.

textProp

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

parProp

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

cellProp

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

colspan

integer Optional. vector specifying for each element the number of columns to span for each corresponding value (in values).

See Also

addFlexTable

Examples

Run this code
# NOT RUN {
#START_TAG_TEST
## example 1
headerRow = FlexRow()
headerRow[1] = FlexCell( "Column 1", cellProp = cellProperties(background.color="#527578")  )
headerRow[2] = FlexCell( "Column 2", cellProp = cellProperties(background.color="#527578")  )

## example 2
headerRow = FlexRow( c("Column 1", "Column 2")
	, cellProp = cellProperties(background.color="#527578") )
#STOP_TAG_TEST
# }

Run the code above in your browser using DataCamp Workspace