View source: R/add_incomplete.R
add_incomplete | R Documentation |
Automatically detect missing endmarks and replace with the |
endmark
symbol to indicate an incomplete sentence.
add_incomplete(text.var, endmarks = "[.?|!]+$", silent = FALSE)
text.var |
The text variable. |
endmarks |
A reguar expression to check for endmarks. |
silent |
logical. If |
Returns a vector with missing endmarks replaced with |
.
add_incomplete(
c(
"This in a",
"I am funny!",
"An ending of sorts%",
"What do you want?"
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.