Description Usage Arguments Value Examples
Creates a document term matrix in the dfm class.
Includes only the meta data used for the analysis presented in the vignette.
1  | prepare_gtd(d, fromdate = NULL, todate = NULL, rm_time = T)
 | 
d | 
 A data.frame with the GTD data. You can download the GTD data for free
by filling out this form.
You can read the .xlsx file with   | 
fromdate | 
 A Date (or character value that can be coerced to Date)  | 
todate | 
 A Date (or character value that can be coerced to Date)  | 
rm_time | 
 If TRUE, remove time related terms, such as monday, januari and yesterday.  | 
A quanteda style DTM
1 2  | gtd_data = openxlsx::read.xlsx('GTD FILE AS DOWNLOADED FROM GTD WEBSITE')
gtd_dtm = prepare_gtd(gtd_data, fromdate='2010-01-01')
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.