Learn R Programming

sentimentr (version 0.0.1)

get_sentences: Get Sentences

Description

Get sentences from a character vector, sentiment, or sentiment_by object.

Usage

get_sentences(x, ...)

Arguments

x
A character vector, sentiment, or sentiment_by object.
...
Ignored.

Value

subs - Returns a list of sub-expressions.

Examples

Run this code
(x <- paste0(
    "Mr. Brown comes! He says hello. i give him coffee.  i will ",
    "go at 5 p. m. eastern time.  Or somewhere in between!go there"
))
get_sentences(x)

Run the code above in your browser using DataLab