Description Usage Arguments Value Author(s) See Also Examples
A partitionBundle object is a S4 class object. partitionBundle,character-method will create a bundle of partitions, but not yet enriched.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | partitionBundle(.Object, ...)
## S4 method for signature 'partition'
partitionBundle(.Object, sAttribute, values = NULL,
prefix = c(""), mc = getOption("polmineR.mc"), verbose = TRUE,
progress = FALSE, ...)
## S4 method for signature 'character'
partitionBundle(.Object, sAttribute, values = NULL,
prefix = c(""), mc = getOption("polmineR.mc"), verbose = TRUE,
progress = FALSE, ...)
## S4 method for signature 'context'
partitionBundle(.Object, mc = getOption("polmineR.mc"),
verbose = FALSE, progress = TRUE)
|
.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 |
S4 class 'partitionBundle', with list of partition objects in slot 'objects'
Andreas Blaette
1 2 3 4 5 6 7 8 9 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.