sentence {librarian}R Documentation

Keep the first sentence of a string.

Description

Keep the first sentence of a string.

Usage

sentence(string)

Arguments

string

(Character) A string.

Value

The string with only the first sentence.

Examples

## 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)


[Package librarian version 1.8.1 Index]