powered by
histogram of frequencies
freqHist(patterns, starts, titles.vec, freqs, histDir)
returns no value, but has side effect generating histogram
vector of character string query patterns
integer vector of starting positions
character vector containing the titles of the stories
return value of frequency()
character string full path name for output directory
fh<-freqHist(patterns,starts,titles.vec,freqs,histDir=tempdir())
Run the code above in your browser using DataLab