# Get the bibentry of a dataset_df object:
iris_bibentry <- get_bibentry(iris_dataset)
# Create a well-formatted bibentry object:
alternative_bibentry <- datacite(
Creator=person("Jane Doe"),
Title ="The Famous Iris Dataset",
Publisher = "MyOrg")
# Assign the new bibentry object:
set_bibentry(iris_dataset) <- alternative_bibentry
# Print the bibentry object according to the DataCite notation:
as_datacite(iris_dataset, "list")
# Print the bibentry object according to the Dublin Core notation:
as_dublincore(iris_dataset, "list")
Run the code above in your browser using DataLab