Given a QDDrama object, this function generates a list of nicely formatted names, following the format string.
dramaNames(x, ids = NULL, formatString = "%A: %T (%DM)", orderBy = "drama")
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 |
Character vector of formatted drama names