Summary methods for koRpus objects
Summary method for S4 objects of classes
kRp.lang
,
kRp.readability
,
kRp.text
, or
kRp.TTR
.
summary(object, ...) ## S4 method for signature 'kRp.lang' summary(object) ## S4 method for signature 'kRp.TTR' summary(object, flat = FALSE) ## S4 method for signature 'kRp.readability' summary(object, flat = FALSE) ## S4 method for signature 'kRp.text' summary(object, index = NA, feature = NULL, flat = FALSE)
object |
An object of class, |
... |
Further options, depending on the object class. |
flat |
Logical, if |
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 |
feature |
A character string naming a feature present in the object,
to trigger a summary regarding that feature.
Currently only |
## Not run: summary(guess.lang("/home/user/data/some.txt", udhr.path="/home/user/data/udhr_txt/")) ## End(Not run) # code is only run when the english language package can be loaded if(require("koRpus.lang.en", quietly = TRUE)){ sample_file <- file.path( path.package("koRpus"), "examples", "corpus", "Reality_Winner.txt" ) tokenized.obj <- tokenize( txt=sample_file, lang="en" ) ld.results <- lex.div(tokenized.obj, char=c()) summary(ld.results) summary(ld.results, flat=TRUE) } else {} # code is only run when the english language package can be loaded if(require("koRpus.lang.en", quietly = TRUE)){ sample_file <- file.path( path.package("koRpus"), "examples", "corpus", "Reality_Winner.txt" ) tokenized.obj <- tokenize( txt=sample_file, lang="en" ) rdb.results <- readability(tokenized.obj, index="fast") summary(rdb.results) summary(rdb.results, flat=TRUE) } else {} # code is only run when the english language package can be loaded if(require("koRpus.lang.en", quietly = TRUE)){ sample_file <- file.path( path.package("koRpus"), "examples", "corpus", "Reality_Winner.txt" ) tokenized.obj <- tokenize( txt=sample_file, lang="en" ) # this will look more useful when you # can use treetag() instead of tokenize() summary(tokenized.obj) } else {}
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.