Learn R Programming

rcqp (version 0.5)

write.cqp_corpus: Save a CWB corpus in a file in tabular representation

Description

Save a CWB corpus in a file as a dataframe where each column represents an attribute (positional or structural).

Usage

# S3 method for cqp_corpus
write(corpus, filename, from = 0, to = 1000, ...)

Arguments

corpus

An object created with corpus.

filename

The file to be used.

from

First token to save (token cpos of the first line of the dataframe).

to

Last token to save (token cpos of the last line of the dataframe).

Not used.

References

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

See Also

corpus, print.cqp_corpus, summary.cqp_corpus.