Learn R Programming

quanteda (version 2.0.1)

summarize_texts: Summary statistics on a character vector

Description

Internal-only function to compute summary statistics on a character object.

Usage

summarize_texts(object, tolower = FALSE, ...)

Arguments

object

corpus to be summarized

tolower

convert texts to lower case before counting types

...

additional arguments passed through to tokens()

Examples

Run this code
# NOT RUN {
# summarize texts
quanteda:::summarize_texts(c("Testing this text. Second sentence.", "And this one."))
quanteda:::summarize_texts(data_char_ukimmig2010)
summary_ukimmig2010 <- quanteda:::summarize_texts(data_char_ukimmig2010)
head(summary_ukimmig2010)
# }

Run the code above in your browser using DataLab