Learn R Programming

polmineR (version 0.7.0)

partitionBundle: Generate a bundle of partitions

Description

A partitionBundle object is a S4 class object. partitionBundle,character-method will create a bundle of partitions, but not yet enriched.

Usage

partitionBundle(.Object, ...)
"partitionBundle"(.Object, sAttribute, values = NULL, prefix = c(""), mc = getOption("polmineR.mc"), verbose = TRUE, progress = FALSE, ...)
"partitionBundle"(.Object, sAttribute, values = NULL, prefix = c(""), mc = getOption("polmineR.mc"), verbose = TRUE, progress = FALSE, ...)
"partitionBundle"(.Object, mc = getOption("polmineR.mc"), verbose = FALSE, progress = TRUE)

Arguments

.Object
character string, a partition, or a list
...
parameters to be passed into partition-method (see respective documentation)
sAttribute
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

Value

S4 class 'partitionBundle', with list of partition objects in slot 'objects'

See Also

partition and bundle-class

Examples

Run this code
## Not run: 
#   use("polmineR.sampleCorpus")
#   bt2009 <- partition("PLPRBTTXT", text_year="2009")
#   pBundle <- partitionBundle(bt2009, sAttribute="text_date", progress=TRUE, pAttribute="word")
#   dtm <- as.DocumentTermMatrix(pBundle, col="count")
#   summary(pBundle)
#   btBundle <- partitionBundle("PLPRBTTXT", sAttribute="text_date")
# ## End(Not run)

Run the code above in your browser using DataLab