R/prepareCorpus.R
LoadDatasets.Rd
Takes a specific set of datasets from existings 'castarter' projects.
LoadDatasets(projectsAndWebsites = NULL, type = "dataset", removeNAdates = TRUE, addProjectColumn = FALSE)
projectsAndWebsites | A character vector listing websites to be loaded in the format "project/website". If none is given, it will check if project and website have been set with `SetCastarter()` |
---|---|
type | Defines the format in which the dataset will be loaded. Available options are:
|
removeNAdates | Logical, defaults to TRUE. If TRUE, dataset items that do not have a date in the records are not imported. |
addProjectColumn | Logical, defatults to FALSE. If TRUE, a column with the project name is appended. |
A data frame including all loaded datasets.
# NOT RUN { projectsAndWebsites <- c("ProjectX/Website1", "ProjectY/Website3", "ProjectZ/Website2") allDatasets <- LoadDatasets(projectsAndWebsites) # }