ReporteRs (version 0.7.8)

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
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 DataCamp Workspace