sentimentr (version 2.7.1)

get_sentences: Get Sentences

Description

get_sentences - 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.

Other arguments passed to split_sentence.

Value

Returns a list of vectors of sentences.

Examples

Run this code
# NOT RUN {
dat <- data.frame(
    w = c('Person 1', 'Person 2'),
    x = c(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"
    ), "One more thought for the road! I am going now.  Good day."),
    y = state.name[c(32, 38)], 
    z = c(.456, .124),
    stringsAsFactors = FALSE
)
get_sentences(dat$x)
get_sentences(dat)
# }

Run the code above in your browser using DataLab