Description Usage Arguments Value Examples
Word statistics commonly used to calculate readability sores by grouping variable(s).
1 | readability_word_stats_by(x, group, group.names, ...)
|
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. |
Returns a data.frame
(data.table
) readability word statistics.
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)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.