Learn R Programming

polmineR (version 0.6.1)

getTermFrequencies: get term frequencies

Description

Get term frequencies based on corpus positions. Parallelization is possible. (Performance gains decrease with the use of additional cores, as all cores need to access the corpus on disk.)

Usage

getTermFrequencies(.Object, ...)
"getTermFrequencies"(.Object, pAttribute = c("word", "pos"), id2str = TRUE, mc = TRUE)
"getTermFrequencies"(.Object, corpus, pAttribute)

Arguments

.Object
a partition object
...
further parameters
pAttribute
length 1 or 2 character vector, first element is supposed to be "word" or "lemma", second (optionally) "pos"
id2str
logical, whether to add rownames
mc
logical, whether to use multicore
corpus
the corpus to use