publication_year: Get/set the publication_year of the object.

View source: R/publication_year.R

publication_yearR Documentation

Get/set the publication_year of the object.

Description

Get/set the optional publication_year property as an attribute to an R object.

Usage

publication_year(x)

publication_year(x, overwrite = TRUE) <- value

Arguments

x

A semantically rich data frame object created by dataset::dataset_df or dataset::as_dataset_df.

overwrite

If the attributes should be overwritten. In case it is set to FALSE, it gives a message with the current PublicationYear property instead of overwriting it. Defaults to TRUE when the attribute is set to value regardless of previous setting.

value

The publication_year as a character set.

Details

The PublicationYear is the year when the data was or will be made publicly available in YYYY format. See Publication Year: DataCite Additional Guidance.

Value

Returns the year metadata field of the DataBibentry of the dataset

See Also

Other Reference metadata functions: description(), geolocation(), identifier(), language, publisher(), rights()

Examples

publication_year(iris_dataset)
publication_year(iris_dataset) <- 1936

dataset documentation built on April 3, 2025, 10:25 p.m.