powered by
Sort a kwic list with respect to an anchor and a positional attribute.
# S3 method for cqp_kwic sort(x, decreasing = FALSE, sort.anchor = "match", sort.attribute = "word", sort.offset = 0, ...)
A cqp_kwic object.
cqp_kwic
Reverse order.
The anchor (match, matchend, target, keyword) to be used as sorting key.
The attribute (such as word, lemma… according to the available attributes in a given corpus) for sorting the lines of the concordance.
Sort on the selected anchor, or n tokens before or after it.
Ignored.
http://cwb.sourceforge.net/documentation.php
cqp_kwic, print.cqp_kwic.
print.cqp_kwic
# NOT RUN { c <- corpus("DICKENS"); sc <- subcorpus("DICKENS", "interesting"); kwic <- cqp_kwic <- (sc); kwic <- sort(kwic) print(kwic); # }
Run the code above in your browser using DataLab