Look up the minimum and maximum struc of a s-attribute within a region,
including scenario of nested s-attributes. If there are no regions of the
s-attribute within the region, NA
values are returned.
region_matrix_to_struc_matrix(
corpus,
s_attribute,
region_matrix,
registry = NULL
)region_to_strucs(corpus, s_attribute, region, registry = NULL)
Depending whether input is a vector (argument region
) or a matrix
(argument region_matrix
), a vector or a matrix.
ID of a CWB corpus.
Name of structural attribute. The attribute may be nested.
A two-column matrix
with regions, left corpus
positions in column 1, right corpus positions in column 2.
Path of the registry directory. If NULL
(default), value
of environment variable 'CORPUS_REGISTRY' will be used.
Vector with left and right corpus position of region.