Learn R Programming

koRpus (version 0.11-5)

summary: Summary methods for koRpus objects

Description

Summary method for S4 objects of classes kRp.lang, kRp.readability, kRp.tagged, kRp.TTR or kRp.txt.freq.

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.tagged summary(object)

# S4 method for kRp.txt.freq summary(object)

Arguments

object

An object of class, kRp.lang, kRp.readability, kRp.tagged, kRp.TTR, or kRp.txt.freq.

...

Further options, depending on the object class.

flat

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

See Also

kRp.lang, kRp.readability, kRp.tagged, kRp.TTR, kRp.txt.freq

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)
# }
# NOT RUN {
summary(freq.analysis(tagged.txt))
# }

Run the code above in your browser using DataLab