Learn R Programming

rcqp (version 0.5)

region_sizes: Size of regions of a structural attribute.

Description

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

Usage

region_sizes(attribute)
 # S3 method for 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.

References

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

See Also

cqp_flist, cqp_ftable, cqp_kwic, corpus.

Examples

Run this code
# NOT RUN {
c <- corpus("DICKENS");
s <- region_sizes(c$pos);
# }

Run the code above in your browser using DataLab