| get_bibentry | R Documentation |
Retrieve or replace the bibliographic entry stored in a dataset's attributes.
The entry is a utils::bibentry used to hold citation metadata for
dataset_df() objects.
get_bibentry(dataset)
set_bibentry(dataset) <- value
dataset |
A dataset created with |
value |
A |
New datasets are initialized with reasonable defaults. To build a new
bibentry with sensible defaults and field names, use datacite() (DataCite)
or dublincore() (Dublin Core), then assign it with
set_bibentry(dataset) <- value.
See the vignette for more background:
vignette("bibentry", package = "dataset").
get_bibentry(dataset) returns the utils::bibentry stored in
dataset's attributes.
set_bibentry(dataset) <- value sets the attribute and returns the
modified dataset invisibly.
Other bibliographic helper functions:
contributor(),
creator(),
dataset_format(),
dataset_title(),
description(),
geolocation(),
language,
publication_year(),
publisher(),
relation(),
rights(),
subject()
# Get the bibentry of a dataset_df object:
be <- get_bibentry(orange_df)
# Create a well-formed bibentry (DataCite-style):
be2 <- datacite(
Creator = person("Jane", "Doe"),
Title = "The Orange Trees Dataset",
Publisher = "MyOrg"
)
# Assign the new bibentry:
set_bibentry(orange_df) <- be2
# Inspect in different notations:
as_datacite(orange_df, type = "list")
as_dublincore(orange_df, type = "list")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.