| coChronology {SherlockHolmes} | R Documentation | 
coChronology
Description
graphical indicator of search patterns within stories
Usage
coChronology(titles.vec, patterns, starts, freqs, chronDir)
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() | 
| chronDir | character string full path name for output directory | 
Value
returns an integer matrix whose rows are search patterns and columns are stories, value of 1 indicates the presence of the corresponding search pattern in the corresponding story
Examples
freqDir<-tempdir()
chronDir<-sprintf("%s/chronology",freqDir)
dir.create(chronDir)
dir.create(sprintf("%s/plots",chronDir))
dir.create(sprintf("%s/archive",chronDir))
print(chronDir)
coch<-coChronology(titles.vec,c("Holmes","Watson"),starts,freqs,chronDir)
[Package SherlockHolmes version 1.0.1 Index]