Learn R Programming

wyz.code.rdoc (version 1.1.7)

sentensize: Sentensize a string

Description

Transforms a string into sentence, enforcing upper case on first letter, normalizing spaces, and ensuring a final point is present in the sentence.v All spaces characters are turned to single space.

Usage

sentensize(x_s_1, ...)

Arguments

x_s_1

the string to sentensize.

any complimentary string. Will be appended to x_s_1 prior processing

Value

A single string.

Details

Intented to produce well-formed sentences, human readable (from a format point of view).

References

Refer to Writing R extensions to know more about R documentation requirements.

Examples

Run this code
# NOT RUN {
print(sentensize('some bla', 'bli   blo \t\n\bblu'))

# provides following result
# "Some bla bli blo blu."
# }

Run the code above in your browser using DataLab