Learn R Programming

polmineR (version 0.6.1)

partitionBundle: Generate a list of partitions

Description

A list of partition objects with fixed s-attributes and one variable s-attribute is generated

Usage

partitionBundle(.Object, ...)
"partitionBundle"(.Object, def = NULL, prefix = c(""), encoding = NULL, pAttribute = NULL, regex = FALSE, xml = "flat", id2str = TRUE, type = NULL, mc = getOption("polmineR.mc"), verbose = TRUE, progress = FALSE, ...)
"partitionBundle"(.Object, def, prefix = c(""), encoding = NULL, pAttribute = NULL, regex = FALSE, xml = "flat", id2str = TRUE, type = NULL, mc = getOption("polmineR.mc"), verbose = TRUE, progress = FALSE, ...)

Arguments

.Object
character string, a partition, or a list
...
shortcut to define partitions
def
a list that indicates the s-attribute to be variable and that provides a character string of values (e.g. def=list(text_year=c("2005", "2006"))
prefix
a character vector that will serve as a prefix for partition names
encoding
encoding of the corpus (typically "LATIN1 or "(UTF-8)), if NULL, the encoding provided in the registry file of the corpus (charset="...") will be used b
pAttribute
the pAttribute(s) for which term frequencies shall be retrieved
regex
logical (defaults to FALSE), if TRUE, the s-attributes provided will be handeled as regular expressions; the length of the character vectors with s-attributes then needs to be 1
xml
either 'flat' (default) or 'nested'
id2str
whether to turn token ids to strings (set FALSE to minimize object.size / memory consumption)
type
character vector (length 1) specifying the type of corpus / partition (e.g. "plpr")
mc
logical, whether to use multicore parallelization
verbose
logical, whether to provide progress information
progress
logical, whether to show progress bar

Value

a S4 class 'partitionBundle', which is a list with partition objects

See Also

partition and bundle-class