Skip to contents

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



publisher(x, overwrite = TRUE) <- value



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


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.


The Publisher as a character set.


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


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.

See also

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


iris_dataset <- iris
publisher(iris_dataset) <- "American Iris Society"
#> [1] "American Iris Society"