ndoc returns the number of documents or features in a quanteda object, which can be
a corpus, dfm, or tokenized texts.
nfeature is an alias for ntype when applied to dfm
objects. For a corpus or set of texts, "features" are only defined through
tokenization, so you need to use ntoken to count these.
Usage
ndoc(x)
"ndoc"(x)
"ndoc"(x)
nfeature(x)
"nfeature"(x)
"nfeature"(x)
Arguments
x
a corpus or dfm object
Value
an integer (count) of the number of documents or features in the corpus or dfm