partitionBundle-method: Generate a bundle of partitions

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

 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)

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'

Author(s)

Andreas Blaette

See Also

partition and bundle-class

Examples

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)

nrauscher/corpus documentation built on May 23, 2019, 9:34 p.m.