spanFlexTableColumns

0th

Percentile

Span columns within rows

Span columns within rows.

Usage
spanFlexTableColumns(object, i, from, to, runs)
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.

runs

a vector of size numcol of FlexTable. If provided, successive runs of equal values will indicate to merge corresponding columns.

Note

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

See Also

spanFlexTableRows, FlexTable

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

MyFTable = FlexTable( data = pbc_summary[, 1:4] )
# merge column 2 to 4 in line 3
MyFTable = spanFlexTableColumns( MyFTable, i = 3, from = 2, to = 4 )

# merge cells in rows 1 to 6 when successive values of runs are identical
MyFTable = spanFlexTableColumns( MyFTable, i = 4:6, runs = c( "a", "b", "b", "c") )
#STOP_TAG_TEST
# }
Documentation reproduced from package ReporteRs, version 0.6.9, License: GPL-3

Community examples

Looks like there are no examples yet.