spanFlexTableRows

0th

Percentile

Span rows within columns

Span rows within columns.

Usage
spanFlexTableRows(object, j, from, to, runs)
Arguments
object

a FlexTable object

j

vector (integer index, col.names values or boolean vector) for columns selection.

from

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

to

index of the last row to span.

runs

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

Note

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

See Also

FlexTable, spanFlexTableColumns

Aliases
  • spanFlexTableRows
Examples
# NOT RUN {
mydata = iris[46:55, ]
MyFTable <- FlexTable( data = mydata )

# merge line 5 to 7 in column 1
MyFTable <- spanFlexTableRows( MyFTable, j = 3, from = 5, to = 7 )

# merge cells in column "Species" when successive values
# of Species are identical. Note
# the character vector length is the same
# than the number of lines of the FlexTable.
MyFTable <- spanFlexTableRows( MyFTable, j = "Species",
  runs = as.character( mydata$Species ) )
# }
Documentation reproduced from package ReporteRs, version 0.8.10, License: GPL-3

Community examples

Looks like there are no examples yet.