dramaNames: Format drama titles

Description Usage Arguments Value

View source: R/text.R

Description

Given a QDDrama object, this function generates a list of nicely formatted names, following the format string.

Usage

1
dramaNames(x, ids = NULL, formatString = "%A: %T (%DM)", orderBy = "drama")

Arguments

x

The QDDrama object

ids

If specified, should be a character vector of play ids (prefixed with corpus). Then the return value only contains the plays in the vector and in the order specified.

formatString

A character vector. Contains special symbols that are replaced by meta data entries about the plays. The following symbols can be used: - %T: title of the play - %A: Author name - %P: GND entry of the author (if known) - %DR, - %DM: The minimal date - %L: The language - %I: The id - %C: The corpus prefix

orderBy

The meta data key that the final list will be ordered by

Value

Character vector of formatted drama names


DramaAnalysis documentation built on Jan. 13, 2021, 10:02 p.m.