ranges {polmineR} | R Documentation |
Get ranges for query.
Description
Get ranges (pairs of left and right corpus positions) for queries.
Usage
ranges(.Object, ...)
## S4 method for signature 'corpus'
ranges(
.Object,
query,
cqp = FALSE,
check = TRUE,
p_attribute = "word",
verbose = TRUE,
mc = 1L,
progress = FALSE
)
## S4 method for signature 'character'
ranges(
.Object,
query,
cqp = FALSE,
check = TRUE,
p_attribute = "word",
verbose = TRUE,
mc = 1L,
progress = FALSE
)
## S4 method for signature 'subcorpus'
ranges(
.Object,
query,
cqp = FALSE,
check = TRUE,
p_attribute = "word",
verbose = TRUE,
mc = 1L,
progress = FALSE
)
## S4 method for signature 'partition'
ranges(
.Object,
query,
cqp = FALSE,
check = TRUE,
p_attribute = "word",
verbose = TRUE,
mc = 1L,
progress = FALSE
)
Arguments
.Object |
A length-one |
... |
Used for reasons of backwards compatibility to
process arguments that have been renamed (e.g. |
query |
A |
cqp |
Either logical ( |
check |
A |
p_attribute |
The p-attribute to search. Needs to be stated only if query
is not a CQP query. Defaults to |
verbose |
A |
mc |
If |
progress |
A |