get_sentences: Get Sentences

Description Usage Arguments Value Examples

View source: R/get_sentences.R

Description

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

Usage

1

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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)

sentimentr documentation built on April 24, 2018, 5:03 p.m.