Learn R Programming

wyz.code.rdoc (version 1.1.19)

generateParagraph: Generate Paragraph

Description

Generate paragraph, collating provided contents with given string.

Usage

generateParagraph(..., collapse_s_1 = "\n", addFinalSeparator_b_1 = FALSE)

Arguments

...

additional arguments, content to be collated.

collapse_s_1

The string to be used to collate content

addFinalSeparator_b_1

A single boolean value. When TRUE, a final separator will be added to generated content.

Value

A single string, with possibly many new line character embedded.

See Also

Functions generateParagraph2NL and generateParagraphCR.

Examples

Run this code
# NOT RUN {
generateParagraph(LETTERS[1:3])
# "A\nB\nC"

generateParagraph(LETTERS[1:3], addFinalSeparator_b_1 = TRUE)
# "A\nB\nC\n"
# }

Run the code above in your browser using DataLab