The method returns counts (optionally frequencies) of a query or a multiple queries in subcorpora defined by one or two s-attributes.
dispersion(.Object, ...) # S4 method for slice dispersion( .Object, query, s_attribute, cqp = FALSE, p_attribute = getOption("polmineR.p_attribute"), freq = FALSE, mc = FALSE, progress = FALSE, verbose = FALSE, ... ) # S4 method for partition dispersion( .Object, query, s_attribute, cqp = FALSE, p_attribute = getOption("polmineR.p_attribute"), freq = FALSE, mc = FALSE, progress = TRUE, verbose = FALSE, ... ) # S4 method for subcorpus dispersion( .Object, query, s_attribute, cqp = FALSE, p_attribute = getOption("polmineR.p_attribute"), freq = FALSE, mc = FALSE, progress = TRUE, verbose = FALSE, ... ) # S4 method for corpus dispersion( .Object, query, s_attribute, cqp = is.cqp, p_attribute = getOption("polmineR.p_attribute"), freq = FALSE, mc = FALSE, progress = FALSE, verbose = FALSE, ... ) # S4 method for character dispersion( .Object, query, s_attribute, cqp = is.cqp, p_attribute = getOption("polmineR.p_attribute"), freq = FALSE, mc = FALSE, progress = TRUE, verbose = TRUE, ... ) # S4 method for hits dispersion(.Object, source, s_attribute, freq = FALSE, verbose = TRUE, ...) # S4 method for remote_corpus dispersion(.Object, ...) # S4 method for remote_subcorpus dispersion(.Object, ...)
.Object | A |
---|---|
... | Further parameters. |
query | A |
s_attribute | A |
cqp | If |
p_attribute | Length one |
freq | A |
mc | A |
progress | A |
verbose | A |
source | The source of the evaluation the hits reported in
|
depends on the input, as this is a wrapper function
A data.table
.
The worker behind the dispersion
-method is the hits
-method.
count
Andreas Blaette
#>#>dispersion("GERMAPARLMINI", query = "Integration", s_attribute = "date")#> query date count #> 1: Integration 2009-10-27 1 #> 2: Integration 2009-10-28 0 #> 3: Integration 2009-11-10 7 #> 4: Integration 2009-11-11 15 #> 5: Integration 2009-11-12 0#>#>integration <- dispersion( test, query = "Integration", p_attribute = "word", s_attribute = "date" ) integration <- dispersion(test, "Integration", s_attribute = c("date", "party")) integration <- dispersion(test, '"Integration.*"', s_attribute = "date", cqp = TRUE)