region_sizes: Size of regions of a structural attribute.

Description Usage Arguments Value Author(s) References See Also Examples

Description

Compute the size (in number of tokens) of the regions of a structural attribute.

Usage

1
2
3
 region_sizes(attribute)
 ## S3 method for class 'cqp_attr'
region_sizes(attribute)

Arguments

attribute

A cqp_attr (type: structural attribute) (created for instance with $.cqp_corpus).

Value

An integer vector: for each region of this attribute, the number of tokens belonging to that region.

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_flist, cqp_ftable, cqp_kwic, corpus.

Examples

1
2
3
4
5
## Not run: 
c <- corpus("DICKENS");
s <- region_sizes(c$pos);

## End(Not run)

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