Get document-term matrix from a document-feature matrix and a list of tokens

get_dtm(obj_dfm, filtering_tokens)

Arguments

obj_dfm

a document-feature matrix

filtering_tokens

a list of tokens which are match against the features of the document-feature matrix

Value

a document-term matrix with nrow == nrow(obj_dfm) and ncol == length(filtering_tokens)