Learn R Programming

RNewsflow (version 1.2.4)

get_doc_terms: View term scores for a given document

Description

View term scores for a given document

Usage

get_doc_terms(dtm, docname = NULL, doc_i = NULL)

Arguments

dtm

A quanteda dfm

docname

name of document to select

doc_i

alternatively, select document by index

Value

A named vector with terms (names) and scores

Examples

Run this code
# NOT RUN {
get_doc_terms(rnewsflow_dfm, doc_i=1)
# }

Run the code above in your browser using DataLab