powered by
compute rolling average of ratio of number of occurrences of query string divided by total number of words
rolling(freqs, titles.vec, windowPct = 0.1, odir, verbose)
returns noo value, but has side effect of generating graphs
return value of frequency()
character vector containing the titles of the stories
a numeric control size of plot window
character string containing the full path name for the output directory
Boolean if TRUE print informative or diagnostic messages to console
rol<-rolling(freqs,titles.vec,windowPct=0.10,odir=tempdir(),verbose=FALSE)
Run the code above in your browser using DataLab