A coerce-method is available to coerce a partition object to a
regions object.
Usage
as.regions(x, ...)
# S3 method for regions
as.data.table(x, values = NULL)
Arguments
x
object of class regions
...
Further arguments.
values
values to assign to a column that will be added
Slots
cpos
a two-column data.table that will include a "cpos_left" and "cpos_right" column
corpus
the CWB corpus (character vector length 1)
encoding
the encoding of the CWB corpus (character vector length 1)
Details
The virtual class CorpusOrSubcorpus is a way to handle corpora specified
by a character vector, region objects, and partition objects
in a uniform manner.
The as.regions-method coerces objects to a regions-object.