showMeta {tosca} | R Documentation |
Export Readable Meta-Data of Articles.
Description
Exports requested meta-data of articles for given id's.
Usage
showMeta(
meta,
id = meta$id,
cols = colnames(meta),
file,
fileEncoding = "UTF-8"
)
Arguments
meta |
A data.frame of meta-data as a result of a read-function. |
id |
Character vector or matrix including article ids. |
cols |
Character vector including the requested columns of meta. |
file |
Character Filename for the export. |
fileEncoding |
character string: declares file encoding. For more information see |
Value
A list of the requested meta data. If file is set, writes a csv including the meta-data of the requested meta data.
Examples
meta <- data.frame(id=c("A", "B", "C", "D"),
title=c("Fishing", "Don't panic!", "Sir Ronald", "Berlin"),
date=c("1885-01-02", "1979-03-04", "1951-05-06", "1967-06-02"),
additionalVariable=1:4, stringsAsFactors=FALSE)
extractedMeta <- showMeta(meta=meta, cols = c("title", "date"))
[Package tosca version 0.3-2 Index]