"character"
, "partition"
,
or "tempcorpus"
object, the result is a two-column matrix with the
start end end corpus positions of the matches for a query (CQP syntax can
be used.) If the cpos-method is called on a "matrix"
object, the cpos
matrix is unfolded.
cpos(.Object, ...)
"cpos"(.Object, query, pAttribute = getOption("polmineR.pAttribute"), encoding = NULL, verbose = TRUE)
"cpos"(.Object, query, pAttribute = NULL, verbose = TRUE)
"cpos"(.Object, query, shift = TRUE)
"cpos"(.Object)
"character"
vector indicating a CWB corpus, a "partition"
object, a "tempcorpus"
object, or a "matrix"
with corpus positions"matrix"
, you get a matrix with two columns, the first column giving the start cpos of the hits obtained,
the second column giving the end cpos of the respective hit. The number of rows is the number of hits.
If there are no hits, a NULL object will be returned.