Description Usage Arguments Value Examples
View source: R/console_output.R
Keep the first sentence of a string.
1 | sentence(string)
|
string |
(Character) A string. |
The string with only the first sentence.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
sentence("This is a sentence. And this is another sentence.")
#> [1] "This is a sentence."
sentence("This is just one sentence.")
#> [1] "This is just one sentence."
sentence("Is this a sentence? Or is this one. Maybe this one! What if there are lots of sentences?")
#> [1] "Is this a sentence?
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.