Skip to contents

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



identifier(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 Identifier property instead of overwriting it. Defaults to TRUE when the attribute is set to value regardless of previous setting.


The Identifier as a character string.


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


The Identifier is an unambiguous reference to the resource within a given context. Recommended practice is to identify the resource by means of a string conforming to an identification system. Examples include International Standard Book Number (ISBN), Digital Object Identifier (DOI), and Uniform Resource Name (URN). Select and identifier scheme from registered URI schemes maintained by IANA. More details: Guidelines for using resource identifiers in Dublin Core metadata and IEEE LOM. Similar to Identifier in datacite. DataCite 4.4.
It is not part of the "core" Dublin Core terms, but we always add it to the metadata attributes of a dataset (in case you use a strict Dublin Core property sheet you can omit it.) Dublin Core metadata terms.

See also

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


identifier(iris_dataset) <- ""
#> [1] ""