showMeta: Export Readable Meta-Data of Articles.

Description Usage Arguments Value Examples

View source: R/showMeta.R

Description

Exports requested meta-data of articles for given id's.

Usage

1
2
3
4
5
6
7
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 write.csv

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

1
2
3
4
5
6
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"))

tosca documentation built on Oct. 28, 2021, 5:07 p.m.