Learn R Programming

ReporteRs (version 0.8.10)

add.pot: add a paraggraph to an existing set of paragraphs of text

Description

add a paraggraph to an existing set of paragraphs of text (set_of_paragraphs object).

Usage

add.pot(x, value)

Arguments

x

set_of_paragraphs object

value

pot object to add as a new paragraph

See Also

set_of_paragraphs, pot

Examples

Run this code
# NOT RUN {
pot1 = pot("My tailor", textProperties(color="red") ) + " is " + pot("rich"
	, textProperties(font.weight="bold") )
my.pars = set_of_paragraphs( pot1 )
pot2 = pot("Cats", textProperties(color="red") ) + " and " + pot("Dogs"
	, textProperties(color="blue") )
my.pars = add.pot( my.pars, pot2 )
# }

Run the code above in your browser using DataLab