Description Usage Arguments Note See Also Examples
Span columns within rows.
1 | spanFlexTableColumns(object, i, from, to, runs)
|
object |
a |
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 |
Overlappings of horizontally merged cells and vertically merged cells are forbidden.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | if( check_valid_java_version() ){
mydata = iris[46:55, ]
MyFTable <- FlexTable( data = mydata )
# merge columns 2 to 4 in line 3
MyFTable <- spanFlexTableColumns( MyFTable, i = 2, from = 2, to = 4 )
# merge cells in line 4 when successive values of
# a given character vector are identical. Note
# the character vector length is the same
# than the number of columns of the FlexTable.
MyFTable <- spanFlexTableColumns( MyFTable, i = 4,
runs = c( "a", "b", "b", "c", "d") )
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.