tf_idf: tf-idf function

View source: R/tf_idf.R

tf_idfR 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)

TextForecast documentation built on April 25, 2022, 9:06 a.m.