Learn R Programming

polmineR (version 0.7.4)

matches: Matches for queries.

Description

If one query is supplied, the function returns a frequency breakdown of the results of the query. If several queries are supplied, frequencies for the individual queries are retrieved.

Usage

matches(.Object, ...)

# S4 method for partition matches(.Object, query, cqp = is.cqp, pAttribute = getOption("polmineR.pAttribute"))

# S4 method for character matches(.Object, query, cqp = is.cqp, pAttribute = getOption("polmineR.pAttribute"))

Arguments

.Object

a partition object

...

further parameters

query

a query, CQP syntax may be used

cqp

either logical to indicate whether the query uses CQP syntax, or a function to determine whether query is a CQP query (defaults to helper function is.cqp)

pAttribute

pAttribute

Value

a data.table

See Also

hits-class

Examples

Run this code
# NOT RUN {
use("polmineR.sampleCorpus")
matches("PLPRBTTXT", '"Integration.*"')

P <- partition("PLPRBTTXT", text_date = "2009-11-11")
matches(P, '"Integration.*"')
# }

Run the code above in your browser using DataLab