concordance {SherlockHolmes} | R Documentation |
concordance
Description
retrieve words that are close to occurrences of pattern
Usage
concordance(freqs, titles.vec, texts.vec, starts, window, odir)
Arguments
freqs |
return value of frequency() |
titles.vec |
character vector containing the titles of the stories |
texts.vec |
character vector of entire text |
starts |
integer vector of starting positions |
window |
integer number of lines to take before and after the pattern match |
odir |
character string containing the full path name for the output directory |
Value
returns no value but has side effect of generating graphs
Examples
con<-concordance(freqs,titles.vec[3],texts.vec,starts,window=2,odir=tempdir())
[Package SherlockHolmes version 1.0.1 Index]