View source: R/outlier_detect.R
outlier_detect | R Documentation |
Locate possible outliers for text variables given numeric word function.
outlier_detect(
text.var,
grouping.var = NULL,
FUN = word_count,
scale.by = "grouping"
)
text.var |
The text variable. |
grouping.var |
The grouping variables. Default |
FUN |
A word function with a numeric vector output (e.g.,
|
scale.by |
A character string indicating which dimensions to scale by.
One of |
Returns a dataframe with possible outliers.
## Not run:
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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.