| identifier | R Documentation |
Retrieve or assign the identifier attribute of a dataset or
bibliographic metadata object.
identifier(x)
identifier(x, overwrite = TRUE) <- value
x |
A |
overwrite |
Logical. If |
value |
A character string giving the identifier. Can be named (e.g.,
|
An identifier provides an unambiguous reference to a resource. Recommended practice is to supply a persistent identifier string, such as a DOI, ISBN, or URN, that conforms to a recognized identification system.
Both Dublin Core
and DataCite 4.4
define identifier as a core property. If the identifier is a DOI, it will
also be stored in the doi field of the metadata record.
Although identifier is not part of the minimal Dublin Core term set, it is
always included in dataset metadata for compatibility with publishing and
indexing systems. You may omit it if working under a strict DC profile.
For best practice in choosing identifier schemes, see the IANA-registered URI schemes.
For identifier(), the current identifier as a character string. For
identifier<-(), the updated object (invisible).
orange_copy <- orange_df
# Get the current identifier
identifier(orange_copy)
# Set a new identifier (e.g., a DOI)
identifier(orange_copy) <- "https://doi.org/10.9999/example.doi"
# Prevent accidental overwrite
identifier(orange_copy, overwrite = FALSE) <- "https://example.org/id"
# Use numeric and NULL values
identifier(orange_copy) <- 12345
identifier(orange_copy) <- NULL # Sets ":unas"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.