Learn R Programming

quanteda (version 0.9.2-0)

features: extract the feature labels from a dfm

Description

Extract the features from a document-feature matrix, which are stored as the column names of the dfm object.

Usage

features(x)

## S3 method for class 'dfm': features(x)

Arguments

x
the object (dfm) whose features will be extracted

Value

  • Character vector of the features

Examples

Run this code
features(dfm(inaugTexts))[1:50]  # first 50 features (alphabetically sorted)

Run the code above in your browser using DataLab