rolling | R Documentation |
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)
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 |
returns noo value, but has side effect of generating graphs
rol<-rolling(freqs,titles.vec,windowPct=0.10,odir=tempdir(),verbose=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.