powered by
Helper to create the requested data.frame to create a "textmeta" object.
as.meta( x, cols = colnames(x), idCol = "id", dateCol = "date", titleCol = "title", dateFormat )
A data.frame with columns "id", "date", "title" and user-specified others.
data.frame to convert
character vector with columns which should be kept
character
character string with column name of the IDs
character string with column name of the Dates
character string with column name of the Titles
character string with the date format in x for as.Date. If not supplied, dates are not transformed.
as.Date
meta <- data.frame(id = 1:3, additionalVariable = matrix(5, ncol = 4, nrow = 3)) (as.meta(meta))
Run the code above in your browser using DataLab