powered by
Return the proportion of sparseness of a document-feature matrix, equal to the proportion of cells that have zero counts.
sparsity(x)
the document-feature matrix
# NOT RUN { inaug_dfm <- dfm(data_corpus_inaugural, verbose = FALSE) sparsity(inaug_dfm) sparsity(dfm_trim(inaug_dfm, min_count = 5)) # }
Run the code above in your browser using DataLab