syllable (version 0.1.2)

readability_word_stats: Readability Word Statistics

Description

Word statistics commonly used to calculate readability sores.

Usage

readability_word_stats(x, as.tibble = tibble_output(), ...)

Arguments

x
A character vector.
as.tibble
logical. If TRUE the output class will be set to a tibble, otherwise a data.table. Default checks getOption("tibble.out") as a logical. If this is NULL the default tibble_output will set as.tibble to TRUE if dplyr is loaded. Otherwise, the output will be a data.table.
...
ignored.

Value

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

Examples

Run this code
x <- c("I like excellent chicken.", "I want eggs Benedict now.", "Really?",
    "I thought that was good.  Well a bit weird.", "I know right!")
readability_word_stats(x)

## Not run: 
# readability_word_stats(presidential_debates_2012$dialogue)
# ## End(Not run)

Run the code above in your browser using DataLab