Learn R Programming

koRpus (version 0.13-4)

summary: Summary methods for koRpus objects

Description

Summary method for S4 objects of classes kRp.lang, kRp.readability, kRp.text, or kRp.TTR.

Usage

summary(object, ...)

# S4 method for kRp.lang summary(object)

# S4 method for kRp.TTR summary(object, flat = FALSE)

# S4 method for kRp.readability summary(object, flat = FALSE)

# S4 method for kRp.text summary(object, index = NA, feature = NULL)

Arguments

object

An object of class, kRp.lang, kRp.readability, kRp.text, or kRp.TTR.

...

Further options, depending on the object class.

flat

Logical, if TRUE only a named vector of main results is returned

index

Either a vector indicating which rows should be considered as transformed for the statistics, or the name of a particular transformation that was previously done to the object, if more than one transformation was applied. If NA, all rows where "equal" is FALSE are used. Only valid for objects providing a diff feature.

feature

A character string naming a feature present in the object, to trigger a summary regarding that feature. Currently only "freq" is implemented.

See Also

kRp.lang, kRp.readability, kRp.text, kRp.TTR

Examples

Run this code
# NOT RUN {
summary(guess.lang("/home/user/data/some.txt", udhr.path="/home/user/data/udhr_txt/"))
# }
# NOT RUN {
summary(lex.div(tagged.txt))
# }
# NOT RUN {
summary(flesch(tagged.txt))
# }
# NOT RUN {
tagged.results <- treetag("~/my.data/sample_text.txt", treetagger="manual", lang="en",
   TT.options=list(path="~/bin/treetagger", preset="en"))
summary(tagged.results)
# }

Run the code above in your browser using DataLab