lengths | R Documentation |
frequencies plotted in order of story length
lengths(titles.vec, patterns, starts, freqs, lengthDir)
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 |
returns no value, but has side effect generating graph
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.