View source: R/text_formatting.R
add_period | R Documentation |
Add a period at the end of a sentence if necessary.
add_period(str)
str |
A string, ending in a sentence. |
Trim any whitespace at the end, and if the line does not end with punctuation, add a period.
A string ending in punctuation.
add_period("This needs a period")
add_period("This does not need another period.")
add_period("Fix spaces at the end ")
add_period("Shouldn't I omit a period if the sentence already ends with other punctuation? ")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.