Learn R Programming

SherlockHolmes (version 1.0.2)

rolling: rolling

Description

compute rolling average of ratio of number of occurrences of query string divided by total number of words

Usage

rolling(freqs, titles.vec, windowPct = 0.1, odir, verbose)

Value

returns noo value, but has side effect of generating graphs

Arguments

freqs

return value of frequency()

titles.vec

character vector containing the titles of the stories

windowPct

a numeric control size of plot window

odir

character string containing the full path name for the output directory

verbose

Boolean if TRUE print informative or diagnostic messages to console

Examples

Run this code
rol<-rolling(freqs,titles.vec,windowPct=0.10,odir=tempdir(),verbose=FALSE)

Run the code above in your browser using DataLab