Learn R Programming

politeness (version 0.9.4)

findPoliteTexts: Find polite text

Description

Deprecated... This function has a new name now. See exampleTexts for details.

Usage

findPoliteTexts(text, covar, ...)

Value

a ggplot of the prevalence of politeness features, conditional on split. Features are sorted by variance-weighted log odds ratio.

Arguments

text

a character vector of texts.

covar

a vector of politeness labels, or other covariate.

...

other arguments passed on to exampleTexts. See exampleTexts for details.

Examples

Run this code
data("phone_offers")
polite.data<-politeness(phone_offers$message, parser="none",drop_blank=FALSE)

findPoliteTexts(phone_offers$message,
                phone_offers$condition,
                type = "most",
                num_docs = 5)


Run the code above in your browser using DataLab