View source: R/create_corpus.R
create_corpus | R Documentation |
Function to read in text data and turn it into a quanteda
corpus object.
create_corpus(path)
path |
A string containing the path to a folder of plain text files (ending in .txt) with their name structured as following: authorname_textname.txt (e.g. smith_text1.txt). |
A quanteda
corpus object with the authors' names as a docvar.
## Not run:
path <- "path/to/data"
create_corpus(path)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.