Learn R Programming

quanteda (version 0.99.22)

summary.character: summary statistics on a character vector

Description

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

Usage

# S3 method for character
summary(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
summary(c("Testing this text.  Second sentence.", "And this one."))
summary(data_char_ukimmig2010)
myTextSummaryDF <- summary(data_char_ukimmig2010)
head(myTextSummaryDF)
# }

Run the code above in your browser using DataLab