tf_idf: tf-idf function

Description Usage Arguments Value Examples

View source: R/tf_idf.R

Description

tf-idf function

Usage

1
tf_idf(x)

Arguments

x

a input matrix x of terms counting.

Value

a list with the terms tf-idf and the terms tf-idf in descending order.

Examples

1
2
3
data("news_data")
X=as.matrix(news_data[,2:ncol(news_data)])
tf_idf_terms = tf_idf(X)

lucasgodeiro/TextForecast documentation built on Sept. 19, 2019, 3:41 a.m.