Learn R Programming

BullsEyeR (version 0.2.0)

freqAnalysis: Functions Frequency Analysis

Description

The function freqAnalysis does a frequency analysis of retained words after initial preprocessing.

Usage

freqAnalysis(ds, spvar = 0.99, stemvar = 0)

Arguments

ds

a character vector of text documents

spvar

a sparsity variable which defaults to 0.99

stemvar

a variable indicating stemming to be performed or not which defaults to '0' meaning no stemming

Value

A dataframe with words and their frequencies after listed preprocessing.

Examples

Run this code
# NOT RUN {
# Run it and see for yourself
# }
# NOT RUN {
data.tmp<-read.csv(system.file("ext", "testdata.csv", package="BullsEyeR"))
ds<-as.character(data.tmp$Story[1:2])
freqAnalysis(ds=ds,spvar=0.99,stemvar=0)
# }

Run the code above in your browser using DataLab