ReporteRs (version 0.2)

setFlexCellContent: Replace FlexTable content

Description

Replace a cell content of a FlexTable object with one or more paragraph of texts.

Usage

setFlexCellContent(object, i, j, value)

Arguments

object

a FlexTable object

i

vector integer index for rows. It must be a single value.

j

vector integer index for columns. It must be a single value.

value

a pot or a set_of_paragraphs object to insert as new cell content.

See Also

addFlexTable

Examples

Run this code
# NOT RUN {
data( data_ReporteRs )
myFlexTable = FlexTable( data = data_ReporteRs
	, span.columns = "col1"
, header.columns = TRUE
, row.names = FALSE )
myFlexTable = setFlexCellContent( myFlexTable
, i = 1, j = 1
, pot("Hello World", format = textProperties( color="red" ) )
)
# }

Run the code above in your browser using DataLab