startLine | R Documentation |
where does each story start?
startLine(titles.vec, texts.vec, toupper)
titles.vec |
is a character string containing the full path name for a text file containing the titles of the stories in the same order that they appear in the texts file |
texts.vec |
is a character string containing the full path name for a text file containing the full texts of all of the stories |
toupper |
is a Boolean TRUE if the titles should be converted to upper case |
each title in titles.vec must appear on a single line in titles.vec and texts.vec - a title cannot be split across multiple lines. each title must only appear one time within titles.vec and texts.vec
an integer vector of the starting lines of each story
sl<-startLine(titles.vec,texts.vec,toupper=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.