rolling {SherlockHolmes} | R Documentation |
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)
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 |
Value
returns noo value, but has side effect of generating graphs
Examples
rol<-rolling(freqs,titles.vec,windowPct=0.10,odir=tempdir(),verbose=FALSE)
[Package SherlockHolmes version 1.0.1 Index]