size: Size of a corpus or subcorpus

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

Description

Size of a corpus (number of tokens) or size of a subcorpus (number of matches).

Usage

1
2
3
4
5
6
7
size(x)

## S3 method for class 'cqp_corpus'
size(x)

## S3 method for class 'cqp_subcorpus'
size(x)

Arguments

x

A cqp_corpus object (created with the function corpus) or a cqp_subcorpus object (created with the function subcorpus)

Value

An integer vector of length 1: the number of tokens if x is a corpus or the number of matches if it is a subcorpus.

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

corpus, subcorpus, summary.cqp_corpus, summary.cqp_subcorpus.

Examples

1
2
3
4
5
6
7
8
## Not run: 
c <- corpus("DICKENS");
size(c);

sc <- subcorpus(c, '"interesting"');
size(sc);

## End(Not run)

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