sort.cqp_kwic: Sort a kwic list

Description Usage Arguments Author(s) References See Also Examples

Description

Sort a kwic list with respect to an anchor and a positional attribute.

Usage

1
2
3
 ## S3 method for class 'cqp_kwic'
sort(x, decreasing = FALSE, sort.anchor = "match", 
        sort.attribute = "word", sort.offset = 0, ...)

Arguments

x

A cqp_kwic object.

decreasing

Reverse order.

sort.anchor

The anchor (match, matchend, target, keyword) to be used as sorting key.

sort.attribute

The attribute (such as word, lemma... according to the available attributes in a given corpus) for sorting the lines of the concordance.

sort.offset

Sort on the selected anchor, or n tokens before or after it.

...

Ignored.

Author(s)

Bernard Desgraupes - bernard.desgraupes@u-paris10.fr - University Paris-10.
Sylvain Loiseau - sylvain.loiseau@univ-paris13.fr - University Paris-13.

References

http://cwb.sourceforge.net/documentation.php

See Also

cqp_kwic, print.cqp_kwic.

Examples

1
2
3
4
5
6
7
8
## Not run: 
c <- corpus("DICKENS");
sc <- subcorpus("DICKENS", "interesting");
kwic <- cqp_kwic <- (sc);
kwic <- sort(kwic)
print(kwic);

## End(Not run)

PolMine/rcqp.mac documentation built on May 28, 2019, 2:24 p.m.