These functions provide quanteda methods for readtext objects.
# S3 method for readtext
docnames(x)# S3 method for readtext
docvars(x, field = NULL)
# S3 method for readtext
ndoc(x)
docnames(x)
returns a character vector of the document names from a
readtext object
docvars(x, field = NULL)
returns a data.frame of the document
variables from a readtext object or a vector if field
is a single value
ndoc(x)
returns the number of documents from a readtext object
an object read by readtext()
from the readtext package
string containing the document-level variable name