Exports all articles that contain a given term.
ExportArticlesWith(dataset, term, includeNaDates = TRUE, onlyNaDates = FALSE, txt = TRUE, csv = FALSE, xlsx = FALSE, data.frame = FALSE, includeOnly = NULL, sortBy = "date", project = NULL, website = NULL)
dataset | A dataset created with 'castarter'. |
---|---|
term | The term that determines which articles are exported.Must be a character vector of length = 1. |
onlyNaDates | Logical, defaults to FALSE. Used to for troubleshooting dataset. |
txt | Logical, defaults to TRUE. If TRUE, exports all articles including the term provided in a .txt file. |
csv | Logical, defaults to FALSE. If TRUE, exports all articles including the term provided in a .csv file. |
data.frame | Logical, defaults to FALSE. If TRUE, the function outputs a data frame. If FALSE, function used only for its side effects (i.e. exporting to files) |
project | Name of 'castarter' project. Must correspond to the name of a folder in the current working directory. |
website | Name of a website included in a 'castarter' project. Must correspond to the name of a sub-folder of the project folder.Defaults to NULL. If no website is provided, exported files are saved in the project/Outputs folder. |
# NOT RUN { ExportArticlesWith(dataset, "example") # }