Learn R Programming

contentanalysis (version 0.2.1)

readability_multiple: Calculate readability indices for multiple texts

Description

Vectorized version that calculates readability indices for multiple texts.

Usage

readability_multiple(texts, detailed = FALSE, text_id = NULL)

Value

A tibble with one row per text, including text_id if provided

Arguments

texts

Character vector containing texts to analyze

detailed

Logical, if TRUE returns detailed statistics along with indices

text_id

Optional character vector with identifiers for each text

Examples

Run this code
if (FALSE) {
texts <- c("First text here.", "Second text is longer and more complex.")
ids <- c("doc1", "doc2")
readability_multiple(texts, text_id = ids, detailed = TRUE)
}

Run the code above in your browser using DataLab