Detect Outliers in Text

Usage

outlier_detect(text.var, grouping.var = NULL, FUN = word_count, scale.by = "grouping")

Arguments

text.var
The text variable.
grouping.var
The grouping variables. Default NULL generates one word list for all text. Also takes a single grouping variable or a list of 1 or more grouping variables.
FUN
A word function with a numeric vector output (e.g., syllable_sum, character_count or word_count).
scale.by
A character string indicating which dimensions to scale by. One of "all", "grouping", or "both". Default NULL scales by all.

Detect Outliers in Text

Value

Returns a dataframe with possible outliers.

Description

Locate possible outliers for text variables given numeric word function.

Examples

## <strong>Not run</strong>: # with(DATA, outlier_detect(state)) # with(DATA, outlier_detect(state, FUN = character_count)) # with(DATA, outlier_detect(state, person, FUN = character_count)) # with(DATA, outlier_detect(state, list(sex, adult), FUN = character_count)) # with(DATA, outlier_detect(state, FUN = syllable_sum)) # htruncdf(with(raj, outlier_detect(dialogue, person)), 15, 45) # ## <strong>End(Not run)</strong>