powered by
compute distribution of ratio of number of occurrences of query string divided by total number of words
distributions(freqs, titles.vec, minl, P, odir)
returns no value but has side effect of generating graphs
return value of frequency()
character vector containing the titles of the stories
is an integer param passed to dpseg::dpseg
is a numeric param passed to dpseg::dpseg
character string containing the full path name for the output directory
dis<-distributions(freqs,titles.vec[1],minl=100,P=0.00001,tempdir())
Run the code above in your browser using DataLab