Description Usage Arguments Details Value Author(s) Examples
This function wraps a text in lines with definite length.
1 | putLineBreaks(object,show.output=FALSE,width.output)
|
object |
character string, text to be wraped |
show.output |
logical, if |
width.output |
numeric, single positive integer defining the length of a line |
The argument object
denotes the text to be displayed.
If show.output=TRUE
the text will be displayed in lines with a definite
length, otherweise blank.
The argument width.output
denotes the to be defined length of a line
Returns the wraped text in lines with user-defined length if
show.output=TRUE
. Otherwise no text will be returned.
Matthias Greiner matthias.greiner@bfr.bund.de(BfR),
Katharina Schueller schueller@stat-up.de(STAT-UP Statistical Consulting),
Natalia Belgorodski belgorodski@stat-up.de(STAT-UP statistical Consulting)
1 2 3 4 5 6 | object<-"This is a lang text to be wraped. This is a lang text
to be wraped. This is a lang text to be wraped. This is a lang text to be
wraped. This is a lang text to be wraped. This is a lang text to be wraped.
This is a lang text to be wraped. This is a lang text to be wraped."
object<-gsub(x=object,"\n",replacement="")
putLineBreaks(object=object,show.output=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.