powered by
View term scores for a given document
get_doc_terms(dtm, docname = NULL, doc_i = NULL)
A quanteda dfm
name of document to select
alternatively, select document by index
A named vector with terms (names) and scores
# NOT RUN { get_doc_terms(rnewsflow_dfm, doc_i=1) # }
Run the code above in your browser using DataLab