publisher: Get/set the Publisher of the object.

View source: R/publisher.R

publisherR Documentation

Get/set the Publisher of the object.

Description

Add the optional Publisher property as an attribute to an R object.

Usage

publisher(x)

publisher(x, overwrite = TRUE) <- value

Arguments

x

An R object, such as a data.frame, a tibble, or a data.table.

overwrite

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

value

The Publisher as a character set.

Details

The Publisher corresponds to dct:publisher and Publisher in DataCite. The name of the entity that holds, archives, publishes prints, distributes, releases, issues, or produces the resource. This property will be used to formulate the citation, so consider the prominence of the role. For software, use Publisher for the code repository. If there is an entity other than a code repository, that "holds, archives, publishes, prints, distributes, releases, issues, or produces" the code, use the property Contributor/contributorType/ hostingInstitution for the code repository.

Value

The Publisher attribute as a character of length 1 is added to x.

See Also

Other Reference metadata functions: creator(), dataset_source(), description(), geolocation(), identifier(), language, publication_year(), rights(), size(), version()

Examples

iris_dataset <- iris
publisher(iris_dataset) <- "American Iris Society"
publisher(iris_dataset)

dataset documentation built on March 31, 2023, 10:24 p.m.