Skip to contents

Create a bibentry for a dataset

Usage

bibentry_dataset(ds)

Arguments

ds

A data.frame or inherited tibble, data.frame, or a structured list.

Value

A bibentry object for the ds dataset.

Examples

my_dataset <- dataset (
    x = data.frame (time = rep(c(2019:2022),2),
                    geo = c(rep("NL",4), rep("BE",4)),
                    value = c(1,3,2,4,2,3,1,5),
                    unit = rep("NR",8),
                    freq = rep("A",8)),
    Dimensions = c(1,2),
    Measures = 3,
    Attributes = c(4,5),
    sdmx_attributes = c("time", "freq"),
    Title = "Example dataset",
    Creator = person("Jane", "Doe"),
    Publisher = "Publishing Co.",
    Issued = as.Date("2022-07-14")
)

bibentry(my_dataset)
utils::toBibtex(bibentry_dataset(my_dataset))
#> @Misc{,
#>   title = {Example dataset},
#>   author = {{Doe} and {Jane}},
#>   publisher = {Publishing Co.},
#>   size = {9.9 kB [9.67 KiB]},
#> }