outlier_detect: Detect Outliers in Text

Description Usage Arguments Value Examples

View source: R/outlier_detect.R

Description

Locate possible outliers for text variables given numeric word function.

Usage

1
2
3
4
5
6
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.

Value

Returns a dataframe with possible outliers.

Examples

1
2
3
4
5
6
7
8
9

trinker/qdap documentation built on Sept. 30, 2020, 6:28 p.m.