Learn R Programming

wyz.code.rdoc (version 1.1.19)

sentensize: Create sentence

Description

Create a sentence from given content

Usage

sentensize(x_s, ..., punctuationCharacter_s_1 = ".")

Arguments

x_s

An unconstrained vector of string values

...

additional arguments (should be convertible to character type).

punctuationCharacter_s_1

the punctuation character to use to end the sentence.

Value

A single string.

Details

Collate all provided arguments, then normalize spaces.

Finally, ensure capitalization of first letter and final colon.

Examples

Run this code
# NOT RUN {
sentensize('a quick brown FOX jumps\tover', 'the     lazy      dog')
#  "A quick brown FOX jumps over the lazy dog."

sentensize('a simple', '  question\t', punctuationCharacter_s_1 = '?')
#  "A simple question?"
# }

Run the code above in your browser using DataLab