lengths {SherlockHolmes}R Documentation

lengths

Description

frequencies plotted in order of story length

Usage

lengths(titles.vec, patterns, starts, freqs, lengthDir)

Arguments

titles.vec

character vector containing the titles of the stories

patterns

vector of character string query patterns

starts

integer vector of starting positions

freqs

return value of frequency()

lengthDir

character string full path name for output directory

Value

returns no value, but has side effect generating graph

Examples

freqDir<-tempdir()
lengthDir<-sprintf("%s/length",freqDir)
dir.create(lengthDir)
print(lengthDir)
dir.create(sprintf("%s/plots",lengthDir))
dir.create(sprintf("%s/archive",lengthDir))
le<-lengths(titles.vec,patterns,starts,freqs,lengthDir) 


[Package SherlockHolmes version 1.0.1 Index]