calc_rf: Dispersion and frequency functions These functions are for...

View source: R/calc_disp.R

calc_rfR Documentation

Dispersion and frequency functions These functions are for internal use only.

Description

To be used with the calc_type_metrics function. Includes dispersion measures: calc_df() Document Frequency 'DF', calc_idf() Inverse Document Frequency 'IDF', and calc_dp() Gries' Deviation of Proportions 'DP' functions. Frequency measures include: calc_rf() and calc_orf(). Takes a term-document matrix (TDM) as input and returns the respective dispersion metrics for each type in the TDM.

Usage

calc_rf(tdm)

qtkit documentation built on Sept. 11, 2024, 5:14 p.m.