readability_word_stats_by: Readability Word Statistics By Grouping Variable(s)

Description Usage Arguments Value Examples

View source: R/readability_word_stats_by.R

Description

Word statistics commonly used to calculate readability sores by grouping variable(s).

Usage

1

Arguments

x

A character vector.

group

The grouping variable(s). Takes a single grouping variable or a list of 1 or more grouping variables.

group.names

A vector of names that corresponds to group. Generally for internal use.

...

ignored.

Value

Returns a data.frame (data.table) readability word statistics.

Examples

1
2
3
4
5
6
7
8
9
dat <- data.frame(
   text = c("I like excellent chicken.", "I want eggs Benedict now.", "Really?"),
   group = c("A", "B", "A")
)
readability_word_stats_by(dat$text, dat$group)

with(presidential_debates_2012, readability_word_stats_by(dialogue, person))
with(presidential_debates_2012, readability_word_stats_by(dialogue, list(role, time)))
with(presidential_debates_2012, readability_word_stats_by(dialogue, list(person, time)))

syllable documentation built on May 30, 2017, 12:52 a.m.