readtext-methods {quanteda}R Documentation

Extensions for readtext objects

Description

These functions provide quanteda methods for readtext objects.

Arguments

x

an object returned by spacy_parse, or (for spacy_parse) a corpus object

...

not used for these functions

Details

texts(x) returns the texts from a readtext object

docnames(x) returns the document names from a readtext object

docvars(x, field = NULL) returns a data.frame of the document variables from a readtext object

ndoc(x) returns the number of documents from a readtext object


[Package quanteda version 3.1.0 Index]