Description Usage Arguments Note See Also Examples
View source: R/FlexTablePublicAPI.R
Span rows within columns.
| 1 | spanFlexTableRows(object, j, from, to, runs)
 | 
| object | a  | 
| 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  | 
Overlappings of horizontally merged cells and vertically merged cells are forbidden.
FlexTable, spanFlexTableColumns
| 1 2 3 4 5 6 7 8 9 10 11 12 | 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 ) )
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.