Learn R Programming

quanteda (version 1.3.13)

summary_character: Summary statistics on a character vector

Description

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

Usage

summary_character(object, n = 100, tolower = FALSE, ...)

Arguments

object

corpus to be summarized

n

maximum number of texts to describe, default=100

tolower

convert texts to lower case before counting types

...

additional arguments passed through to tokens

Examples

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

Run the code above in your browser using DataLab