tf_idf {TextForecast}R Documentation

tf-idf function

Description

tf-idf function

Usage

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

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

[Package TextForecast version 0.1.3 Index]