Add a full stop to the end of a sentence

add_fullstop(text, punctuation = ".")

Arguments

text

A text string with or without punctuation at the end.

punctuation

The desired punctuation for the end of your string.

Value

A character string with a punctuation at the end of the string.

Author

Kelli F. Johnson

Examples

test <- add_fullstop("I ate an apple today")
test <- add_fullstop(c("I ate an apple today", "Example with exclamation!"))