Description Usage Arguments Value Examples
Get the features from a document-feature matrix, which are stored as the column names of the dfm object.
1 | featnames(x)
|
x |
the dfm whose features will be extracted |
character vector of the feature labels
1 2 3 4 5 6 7 8 9 10 | dfmat <- dfm(data_corpus_inaugural)
# first 50 features (in original text order)
head(featnames(dfmat), 50)
# first 50 features alphabetically
head(sort(featnames(dfmat)), 50)
# contrast with descending total frequency order from topfeatures()
names(topfeatures(dfmat, 50))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.