Sorts a dfm by frequency of total features, total features in documents, or both
# S3 method for dfm sort(x, decreasing = TRUE, margin = c("features", "docs", "both"), ...)
x | Document-feature matrix created by |
---|---|
decreasing | TRUE (default) if sort will be in descending order, otherwise sort in increasing order |
margin | which margin to sort on |
... | additional arguments passed to base method |
A sorted dfm matrix object
Deprecated; use dfm_sort
instead.
dfm_sort