Skip to contents

A dataset constructed with dataset records most of the dataset-level metadata in a bibentry object. A dataset constructed with dataset records most of the dataset-level metadata in a bibentry object. This class is defined in the utils package, and it is installed by default with R; using the gives wide interoperability with other packages and allows printing or saving the bibliographic record in HTML, BibLatex and other formats. For further information see utils::bibentry.

Usage

dataset_bibentry(x)

Arguments

x

A dataset object created with dataset::dataset.

Value

The bibentry object of the dataset.

Examples

ds <- dataset(iris,
        title = "The iris Dataset",
        author = c(
           person(family ="Anderson",
                  given ="Edgar",
                  role = "aut")
                 ),
         identifier = "https://doi.org/10.1111/j.1469-1809.1936.tb02137.x",
         year = "1935",
         version = "1.0",
         description = "The famous dataset that is distributed with R.",
         url = "https://en.wikipedia.org/wiki/Iris_flower_data_set",
         resourceType = "Dataset"
         )

dataset_bibentry(ds)
#> Anderson E (1935). "The iris Dataset."