Generate bundle of partitions.
Use partition_bundle
to create a partition_bundle
object, which
combines a set of partition
objects.
partition_bundle(.Object, ...) ## S4 method for signature 'partition' partition_bundle( .Object, s_attribute, values = NULL, prefix = "", mc = getOption("polmineR.mc"), verbose = TRUE, progress = FALSE, type = get_type(.Object), ... ) ## S4 method for signature 'corpus' partition_bundle( .Object, s_attribute, values = NULL, prefix = "", mc = getOption("polmineR.mc"), verbose = TRUE, progress = FALSE, xml = "flat", type = get_type(.Object), ... ) ## S4 method for signature 'character' partition_bundle( .Object, s_attribute, values = NULL, prefix = "", mc = getOption("polmineR.mc"), verbose = TRUE, progress = FALSE, xml = "flat", type = get_type(.Object), ... ) ## S4 method for signature 'context' partition_bundle(.Object, node = TRUE, progress = TRUE, mc = 1L) ## S4 method for signature 'partition_bundle' partition_bundle( .Object, s_attribute, prefix = character(), progress = TRUE, mc = getOption("polmineR.mc") )
.Object |
A |
... |
parameters to be passed into partition-method (see respective documentation) |
s_attribute |
The s-attribute to vary. |
values |
Values the s-attribute provided shall assume. |
prefix |
A character vector that will be attached as a prefix to partition names. |
mc |
Logical, whether to use multicore parallelization. |
verbose |
Logical, whether to provide progress information. |
progress |
Logical, whether to show progress bar. |
type |
The type of |
xml |
A |
node |
A logical value, whether to include the node (i.e. query matches) in the region matrix
generated when creating a |
Applying the partition_bundle
-method to a partition_bundle
-object will iterate
through the partition
objects in the object
-slot in the partition_bundle
, and apply
partition_bundle
on each partition
, splitting it up by the s-attribute provided by the
argument s_attribute
. The return value is a partition_bundle
, the names of which will be
the names of the incoming partition_bundle
concatenated with the s-attribute values used for splitting.
The argument prefix
can be used to achieve a more descriptive name.
S4 class partition_bundle
, with list of partition objects in slot 'objects'
Andreas Blaette
use("polmineR") bt2009 <- partition("GERMAPARLMINI", date = "2009-.*", regex = TRUE) pb <- partition_bundle(bt2009, s_attribute = "date", progress = TRUE) pb <- enrich(pb, p_attribute = "word") dtm <- as.DocumentTermMatrix(pb, col = "count") summary(pb) pb <- partition_bundle("GERMAPARLMINI", s_attribute = "date") # split up objects in partition_bundle by using partition_bundle-method use("polmineR") pb <- partition_bundle("GERMAPARLMINI", s_attribute = "date") pb2 <- partition_bundle(pb, s_attribute = "speaker", progress = FALSE) summary(pb2)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.