Learn R Programming

scientoText (version 0.1)

term_freq: Term Frequency

Description

Term Frequency

Usage

term_freq(text, pub_years = NULL, sep = NULL, top = NULL)

Arguments

text
A character vector
pub_years
A numeric vector containing publication years
sep
A character value whcih separates the terms (optional)
top
The number of terms to return

Value

Term frequencey vector or matrix (for year-wise)