readtext-methods | R Documentation |
These functions provide quanteda methods for readtext objects.
## S3 method for class 'readtext'
docnames(x)
## S3 method for class 'readtext'
docvars(x, field = NULL)
## S3 method for class 'readtext'
ndoc(x)
x |
an object read by |
field |
string containing the document-level variable name |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.