sort.cqp_kwic: Sort a kwic list

Description Usage Arguments Author(s) References See Also Examples

View source: R/s3.R

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 - [email protected] - University Paris-10.
Sylvain Loiseau - [email protected] - 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 Dec. 19, 2017, 3:12 a.m.