readTextmeta {tosca} | R Documentation |
Read Corpora as CSV
Description
Reads CSV-files and seperates the text and meta data. The result is a
textmeta
object.
Usage
readTextmeta(
path,
file,
cols,
dateFormat = "%Y-%m-%d",
idCol = "id",
dateCol = "date",
titleCol = "title",
textCol = "text",
encoding = "UTF-8",
xmlAction = TRUE,
duplicateAction = TRUE
)
readTextmeta.df(
df,
cols = colnames(df),
dateFormat = "%Y-%m-%d",
idCol = "id",
dateCol = "date",
titleCol = "title",
textCol = "text",
xmlAction = TRUE,
duplicateAction = TRUE
)
Arguments
path |
|
file |
|
cols |
|
dateFormat |
|
idCol |
|
dateCol |
|
titleCol |
|
textCol |
|
encoding |
character string with encoding specification of the files |
xmlAction |
|
duplicateAction |
|
df |
|
Value
textmeta
object