Learn R Programming

topicdoc (version 0.1.1)

tf_df_dist_diff: Helper function to calculate the Hellinger distance between the token frequencies and document frequencies for a specific topic's top N tokens

Description

Helper function to calculate the Hellinger distance between the token frequencies and document frequencies for a specific topic's top N tokens

Usage

tf_df_dist_diff(dtm_data, top_terms)

Value

a single value representing the Hellinger distance

Arguments

dtm_data

a document-term matrix of token counts coercible to simple_triplet_matrix

top_terms

- a character vector of the top N tokens