get_bibentry | R Documentation |
The dataset_df
objects contain among their
attributes bibliographic entries which are stored in a
utils::bibentry
object. Upon creation, these
entries are filled with default values when applicable.
To retrieve
the bibentry of a dataset_df object, use get_bibentry
.
To
create a new bibentry, use the datacite
function for an
interface and default values according to the DataCite standard, or the
dublincore
function for the more general Dublin Core
standard.
To change or an entire new bibliographic entry to a
dataset_df object (or any data.frame-like object), use the
`set_bibentry<-`
function (see examples.) For more details, please
check the vignette("bibentry", package="dataset")
vignette.
get_bibentry(dataset)
set_bibentry(dataset) <- value
dataset |
A dataset created with |
value |
A |
The get_bibentry
returns from the
bibentry
object of x
from its attributes; the
`set_bibentry<-`
assignment function sets this attribute to
value
and invisibly returns x
with the changed attributes. To
set well-formatted input value
, refer to datacite
or
dublincore
(see Details.)
Other bibentry functions:
as_datacite()
,
as_dublincore()
# Get the bibentry of a dataset_df object:
orange_bibentry <- get_bibentry(orange_df)
# Create a well-formatted bibentry object:
alternative_bibentry <- datacite(
Creator = person("Jane Doe"),
Title = "The Orange Trees Dataset",
Publisher = "MyOrg"
)
# Assign the new bibentry object:
set_bibentry(orange_df) <- alternative_bibentry
# Print the bibentry object according to the DataCite notation:
as_datacite(orange_df, "list")
# Print the bibentry object according to the Dublin Core notation:
as_dublincore(orange_df, "list")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.