sotu_dir | R Documentation |
This function saves the State of the Union Addresses to disk, with one address in each file. Useful for testing and demonstrating text analysis functions that read from files.
sotu_dir(dir = tempfile())
dir |
an optional directory of where the files should be saved. Otherwise, a temporary location is used. Will be created if it does not exist. Note that these temporary files are erased (eventually) after exiting R. |
a character vector with complete paths to the texts
Taylor B. Arnold, taylor.arnold@acm.org
fp <- sotu_dir() txt <- readLines(fp[200]) txt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.