S4 class to represent hits for queries.
# S4 method for hits
sample(x, size)A hits object.
A non-negative integer giving the number of items to choose.
statA data.table with the following columns:
The query (optionally using CQP syntax) that evoked a hit.
Number of matches in corpus/subcorpus.
Relative frequency of matches in corpus/subcorpus (optional,
presence depends on usage of argument freq of the hits method).
Total number of tokens in corpus/subcorpus (optional, presence
depends on usage of argument size of the hits method).
If argument s_attribute has been used in the call of the hits
method, the data.table will include additional columns with the
s-attributes. The values in the columns will be the values these s-attributes
assume. Columns count, freq and size will be based on
subcorpora defined by (combinations of) s-attributes.
corpusA length-one "character" vector, ID of the corpus with
hits for query or queries.
queryObject of class "character", query or queries for
p_attributeThe p-attribute that has been queried, a length-one
character vector.
encodingLength-one character vector, the encoding of the
corpus.
nameLength-one characte vector, name of the object.