Learn R Programming

SherlockHolmes (version 1.0.2)

distributions: distributions

Description

compute distribution of ratio of number of occurrences of query string divided by total number of words

Usage

distributions(freqs, titles.vec, minl, P, odir)

Value

returns no value but has side effect of generating graphs

Arguments

freqs

return value of frequency()

titles.vec

character vector containing the titles of the stories

minl

is an integer param passed to dpseg::dpseg

P

is a numeric param passed to dpseg::dpseg

odir

character string containing the full path name for the output directory

Examples

Run this code
dis<-distributions(freqs,titles.vec[1],minl=100,P=0.00001,tempdir())

Run the code above in your browser using DataLab