as.meta {tosca} | R Documentation |
"meta" Component of "textmeta"-Objects
Description
Helper to create the requested data.frame to create a "textmeta" object.
Usage
as.meta(
x,
cols = colnames(x),
idCol = "id",
dateCol = "date",
titleCol = "title",
dateFormat
)
Arguments
x |
data.frame to convert |
cols |
|
idCol |
|
dateCol |
|
titleCol |
|
dateFormat |
|
Value
A data.frame with columns "id", "date", "title" and user-specified others.
Examples
meta <- data.frame(id = 1:3, additionalVariable = matrix(5, ncol = 4, nrow = 3))
(as.meta(meta))
[Package tosca version 0.3-2 Index]