spanFlexTableColumns

0th

Percentile

Span columns within rows

Span columns within rows.

Usage
spanFlexTableColumns(object, i, from, to)
Arguments
object

a FlexTable object

i

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

from

index of the first column to span (its content will be the visible one).

to

index of the last column to span.

Note

Overlappings of horizontally merged cells and vertically merged cells are forbidden.

See Also

addHeaderRow, addFooterRow, setFlexTableWidths , alterFlexTable, setFlexTableBorders , spanFlexTableRows, FlexTable , setRowsColors, setColumnsColors, setZebraStyle , addFlexTable, addFlexTable.docx , addFlexTable.pptx, addFlexTable.html

Aliases
  • spanFlexTableColumns
Examples
# NOT RUN {
#START_TAG_TEST
data(pbc_summary)

MyFTable = FlexTable( data = pbc_summary[, 1:4] )
# merge line 7 to 11 in column 1
MyFTable = spanFlexTableRows( MyFTable, j = 3, from = 5, to = 7 )
# merge cells in column 1 (trt) when successive values of trt are identical
MyFTable = spanFlexTableRows( MyFTable, j=1, runs = as.character( pbc_summary$trt ) )
# merge cells in column 2 (sex) when successive values of sex are identical
MyFTable = spanFlexTableRows( MyFTable, j=2, runs = as.character( pbc_summary$sex ) )
#STOP_TAG_TEST
# }
Documentation reproduced from package ReporteRs, version 0.5.8, License: GPL-3

Community examples

Looks like there are no examples yet.