region_sizes: Size of regions of a structural attribute.

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

View source: R/s3.R

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