concordance | R Documentation |
retrieve words that are close to occurrences of pattern
concordance(freqs, titles.vec, texts.vec, starts, window, odir)
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 |
returns no value but has side effect of generating graphs
con<-concordance(freqs,titles.vec[3],texts.vec,starts,window=2,odir=tempdir())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.