Retrieve or assign the main title of a dataset, typically used as the primary label in metadata exports (e.g., DataCite or Dublin Core).
Arguments
- x
A dataset object created by
dataset_df()oras_dataset_df().- overwrite
Logical. If
TRUE, the existing title is replaced. IfFALSE(default) and a title is already present, a warning is issued and the title is not changed.- value
A character string representing the new title. If
NULL, a placeholder value":tba"is assigned. Ifvalueis a character vector of length > 1, an error is raised.
Value
dataset_title() returns the current dataset title as a character
string. dataset_title<-() returns the updated dataset object (invisible).
Details
According to the Dublin Core specification for title,
the title represents the name by which the resource is formally known.
The DataCite metadata schema supports multiple titles (e.g., translated, alternative), but this function currently supports only a single main title.
See also
Other bibliographic helper functions:
contributor(),
creator(),
dataset_format(),
description(),
geolocation(),
get_bibentry(),
language,
publication_year(),
publisher(),
relation(),
rights(),
subject()
